diff options
author | Jakob Bornecrantz <jakob@aurora.(none)> | 2008-07-10 20:20:46 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@aurora.(none)> | 2008-07-13 16:49:00 +0200 |
commit | 930a863c4f6f11d0fd5cf396ef76054d52c69b9f (patch) | |
tree | 9260d3022c91db15bec24ff1f189828dfc964007 /src/gallium/drivers/i915simple | |
parent | 6410e94b966148dde81b5121e53a250d7b530d91 (diff) |
i915: WIP swap rework
Diffstat (limited to 'src/gallium/drivers/i915simple')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_texture.c | 6 |
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 |