aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_tgsi_insn.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2011-04-07 17:23:48 +0100
committerBrian Paul <[email protected]>2011-09-23 07:58:46 -0600
commit8bf3fb4eca5594f8348de2f8fb67bc94127f8d5a (patch)
treeb1bd40991c014c08cf485b6427ce7b40a436095d /src/gallium/drivers/svga/svga_tgsi_insn.c
parent4f17830b3dda5a1727a3c87897e73b56b37613a6 (diff)
svga: Share one texcoord between depth and fog
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi_insn.c')
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_insn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_insn.c b/src/gallium/drivers/svga/svga_tgsi_insn.c
index e6ec5966eaa..10688accdaa 100644
--- a/src/gallium/drivers/svga/svga_tgsi_insn.c
+++ b/src/gallium/drivers/svga/svga_tgsi_insn.c
@@ -2692,7 +2692,7 @@ static boolean emit_vs_postamble( struct svga_shader_emitter *emit )
/* Also write to depth value */
if (!submit_op3( emit,
inst_token(SVGA3DOP_MAD),
- writemask(depth, TGSI_WRITEMASK_XYZ),
+ writemask(depth, TGSI_WRITEMASK_Z),
swizzle(src(temp_pos), 3, 3, 3, 3),
prescale_trans,
src(temp_pos) ))
@@ -2725,7 +2725,7 @@ static boolean emit_vs_postamble( struct svga_shader_emitter *emit )
/* Move the manipulated depth into the extra texcoord reg */
if (!submit_op1( emit,
inst_token(SVGA3DOP_MOV),
- depth,
+ writemask(depth, TGSI_WRITEMASK_ZW),
src(temp_pos) ))
return FALSE;
}