mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
i915: Silence warnings
This commit is contained in:
parent
7468765b18
commit
96ad8a3600
3 changed files with 8 additions and 4 deletions
|
|
@ -210,6 +210,7 @@ BITS(
|
|||
PRINTF(stream, ": 0x%x\n", ((dw) & himask) >> (lo));
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#define MBZ( dw, hi, lo) do { \
|
||||
unsigned x = (dw) >> (lo); \
|
||||
unsigned lomask = (1 << (lo)) - 1; \
|
||||
|
|
@ -217,6 +218,10 @@ BITS(
|
|||
himask = (1UL << (hi)) - 1; \
|
||||
assert ((x & himask & ~lomask) == 0); \
|
||||
} while (0)
|
||||
#else
|
||||
#define MBZ( dw, hi, lo) do { \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
static void
|
||||
FLAG(
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ src_vector(struct i915_fp_compile *p,
|
|||
const struct tgsi_full_src_register *source)
|
||||
{
|
||||
uint index = source->SrcRegister.Index;
|
||||
uint src, sem_name, sem_ind;
|
||||
uint src = 0, sem_name, sem_ind;
|
||||
|
||||
switch (source->SrcRegister.File) {
|
||||
case TGSI_FILE_TEMPORARY:
|
||||
|
|
|
|||
|
|
@ -206,11 +206,10 @@ i945_miptree_layout_2d( struct i915_texture *tex )
|
|||
unsigned nblocksx = pt->nblocksx[0];
|
||||
unsigned nblocksy = pt->nblocksy[0];
|
||||
|
||||
#if 0 /* used for tiled display targets */
|
||||
if (pt->last_level == 0 && pt->block.size == 4)
|
||||
/* used for tiled display targets */
|
||||
if (0)
|
||||
if (i915_displaytarget_layout(tex))
|
||||
return;
|
||||
#endif
|
||||
|
||||
tex->stride = round_up(pt->nblocksx[0] * pt->block.size, 4);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue