summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-09-15 05:52:16 -0700
committerVinson Lee <[email protected]>2010-09-15 05:52:16 -0700
commita712e193a3f58f4f40402c34adf16de255afa760 (patch)
treee1be417d4b28534b79693554babc477f63f11f54 /src/gallium/drivers/r600
parent76c05761014ac0c4b02a38a09fd286676e941e58 (diff)
r600g: Silence uninitialized variable warning.
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c3
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 2aeaf9a6a65..f12dbd37d38 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) {