diff options
author | Jakob Bornecrantz <[email protected]> | 2012-01-09 13:50:29 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2012-01-10 16:59:45 +0100 |
commit | 1c9a46dbbe74ca342ed9390683ef4a4f5acd91c5 (patch) | |
tree | 9ebb8beb6d4a596a9e7dc1b932305d539b5c73a6 | |
parent | b5f31333a6cdc96b9638e6addfbb7744d506a73b (diff) |
svga: Add somewhat sensible fallback and silence warning
Signed-off-by: Jakob Bornecrantz <[email protected]>
Reviewed-by Brian Paul <[email protected]>
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi_decl_sm30.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c index 0c5cb90939c..a4e80b5571d 100644 --- a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c +++ b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c @@ -318,8 +318,6 @@ ps30_output(struct svga_shader_emitter *emit, struct tgsi_declaration_semantic semantic, unsigned idx) { - SVGA3dShaderDestToken reg; - switch (semantic.Name) { case TGSI_SEMANTIC_COLOR: if (emit->unit == PIPE_SHADER_FRAGMENT && @@ -345,7 +343,8 @@ ps30_output(struct svga_shader_emitter *emit, break; default: assert(0); - reg = dst_register( SVGA3DREG_COLOROUT, 0 ); + /* A wild stab in the dark. */ + emit->output_map[idx] = dst_register( SVGA3DREG_COLOROUT, 0 ); break; } |