Mesa (gallium-0.2): i915: Silence warnings

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Fri Dec 5 16:34:25 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 54a6dcb70fb3c1ac7e9d2d4449db13197637a020
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=54a6dcb70fb3c1ac7e9d2d4449db13197637a020

Author: Jakob Bornecrantz <jakob at tungstengraphics.com>
Date:   Sun Nov 16 12:33:58 2008 +0100

i915: Silence warnings

---

 src/gallium/drivers/i915simple/i915_texture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/i915simple/i915_texture.c b/src/gallium/drivers/i915simple/i915_texture.c
index c65c064..2f5459a 100644
--- a/src/gallium/drivers/i915simple/i915_texture.c
+++ b/src/gallium/drivers/i915simple/i915_texture.c
@@ -178,7 +178,9 @@ i915_displaytarget_layout(struct i915_texture *tex)
    if (tex->base.width[0] >= 128) {
       tex->stride = power_of_two(tex->base.nblocksx[0] * pt->block.size);
       tex->total_nblocksy = round_up(tex->base.nblocksy[0], 8);
+#if 0 /* used for tiled display targets */
       tex->tiled = 1;
+#endif
    } else {
       tex->stride = round_up(tex->base.nblocksx[0] * pt->block.size, 64);
       tex->total_nblocksy = tex->base.nblocksy[0];




More information about the mesa-commit mailing list