Mesa (master): i965/gen7: Set tile_x/y to 0 in the no-stencil case.

Eric Anholt anholt at kemper.freedesktop.org
Mon May 14 17:01:36 PDT 2012


Module: Mesa
Branch: master
Commit: 206eca631b596154e8a9bf6a2d0de9fdb644b3cc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=206eca631b596154e8a9bf6a2d0de9fdb644b3cc

Author: Eric Anholt <eric at anholt.net>
Date:   Thu May 10 08:49:17 2012 -0700

i965/gen7: Set tile_x/y to 0 in the no-stencil case.

Fixes compiler warnings.

---

 src/mesa/drivers/dri/i965/gen7_misc_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c
index 4a5b5a6..53628b9 100644
--- a/src/mesa/drivers/dri/i965/gen7_misc_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c
@@ -105,7 +105,7 @@ static void emit_depthbuffer(struct brw_context *brw)
    if (depth_mt == NULL) {
       uint32_t dw1 = BRW_DEPTHFORMAT_D32_FLOAT << 18;
       uint32_t dw3 = 0;
-      uint32_t tile_x, tile_y;
+      uint32_t tile_x = 0, tile_y = 0;
 
       if (stencil_mt == NULL) {
 	 dw1 |= (BRW_SURFACE_NULL << 29);



More information about the mesa-commit mailing list