summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-09-26 14:34:05 -0700
committerVinson Lee <[email protected]>2010-09-26 14:34:05 -0700
commit84b2773f00161441c4fe06ce6dbf979c5ce78dae (patch)
treec21f74240e343dc53be6c26d624db2bba6665f3f /src/gallium/drivers/r600/r600_shader.c
parent311ab3d468ea5291c10bd5cada9b77a528fb7b7f (diff)
r600g: Silence uninitialized variable warnings.
Fixes these GCC warnings. r600_shader.c: In function 'tgsi_tex': r600_shader.c:1611: warning: 'src2_chan' may be used uninitialized in this function r600_shader.c:1611: warning: 'src_chan' may be used uninitialized in this function
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 3274f3be71a..0c27bb7d879 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1631,6 +1631,11 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
src_chan = 1;
src2_chan = 2;
break;
+ default:
+ assert(0);
+ src_chan = 0;
+ src2_chan = 0;
+ break;
}
r = tgsi_src(ctx, &inst->Src[0], &alu.src[0]);
if (r)