summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915simple/i915_texture.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@aurora.(none)>2008-09-02 17:28:42 +0200
committerJakob Bornecrantz <jakob@aurora.(none)>2008-09-02 17:28:42 +0200
commit4d27c027ab301cff64e7edb8a3eb731c2e8585c5 (patch)
tree3807cfb9c9c5ad3831079bca232efb8701dc7b9d /src/gallium/drivers/i915simple/i915_texture.c
parent28b4090922f45e90804a21f83c04ec8b781cdf96 (diff)
i915: Small fixes for tiled textures
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_texture.c')
-rw-r--r--src/gallium/drivers/i915simple/i915_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915simple/i915_texture.c b/src/gallium/drivers/i915simple/i915_texture.c
index 32344da4d5a..a853a5a3f68 100644
--- a/src/gallium/drivers/i915simple/i915_texture.c
+++ b/src/gallium/drivers/i915simple/i915_texture.c
@@ -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