Mesa (master): r600g: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Wed Sep 15 12:52:51 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Sep 15 05:52:16 2010 -0700

r600g: Silence uninitialized variable warning.

---

 src/gallium/drivers/r600/r600_shader.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 2aeaf9a..f12dbd3 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -2414,6 +2414,9 @@ static inline void callstack_check_depth(struct r600_shader_ctx *ctx, unsigned r
 		case FC_PUSH_WQM:
 			diff = 4;
 			break;
+		default:
+			assert(0);
+			diff = 0;
 		}
 		if ((ctx->bc->callstack[ctx->bc->call_sp].current + diff) >
 		    ctx->bc->callstack[ctx->bc->call_sp].max) {




More information about the mesa-commit mailing list