mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 13:10:25 +01:00
i915: Small fixes for tiled textures
This commit is contained in:
parent
28b4090922
commit
4d27c027ab
1 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ static unsigned
|
|||
power_of_two(unsigned x)
|
||||
{
|
||||
unsigned value = 1;
|
||||
while (value <= x)
|
||||
while (value < x)
|
||||
value = value << 1;
|
||||
return value;
|
||||
}
|
||||
|
|
@ -207,7 +207,7 @@ i945_miptree_layout_2d( struct i915_texture *tex )
|
|||
unsigned nblocksy = pt->nblocksy[0];
|
||||
|
||||
#if 0 /* used for tiled display targets */
|
||||
if (pt->last_level == 0 && pt->cpp == 4)
|
||||
if (pt->last_level == 0 && pt->block.size == 4)
|
||||
if (i915_displaytarget_layout(tex))
|
||||
return;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue