summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@aurora.(none)>2008-07-10 20:20:46 +0200
committerJakob Bornecrantz <jakob@aurora.(none)>2008-07-13 16:49:00 +0200
commit930a863c4f6f11d0fd5cf396ef76054d52c69b9f (patch)
tree9260d3022c91db15bec24ff1f189828dfc964007 /src/gallium/drivers
parent6410e94b966148dde81b5121e53a250d7b530d91 (diff)
i915: WIP swap rework
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/i915simple/i915_texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i915simple/i915_texture.c b/src/gallium/drivers/i915simple/i915_texture.c
index cf4964b26b3..8427d8271a7 100644
--- a/src/gallium/drivers/i915simple/i915_texture.c
+++ b/src/gallium/drivers/i915simple/i915_texture.c
@@ -79,7 +79,7 @@ static unsigned
power_of_two(unsigned x)
{
unsigned value = 1;
- while (value <= x)
+ while (value < x)
value = value << 1;
return value;
}
@@ -205,8 +205,8 @@ 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->cpp == 4)
+#if 1 /* used for tiled display targets */
+ if (pt->last_level == 0 /*&& pt->bpp == 4*/)
if (i915_displaytarget_layout(tex))
return;
#endif