summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-23 13:50:09 -0600
committerBrian Paul <brianp@vmware.com>2010-07-23 13:50:09 -0600
commita2eb8bdcc7bf64285ff75243b6ea7a06bff97cdd (patch)
tree7586b4a686981b9ed5acf1ee15869631127c031c /src/mesa/state_tracker
parente393350904a48d332d832881af9549400194608c (diff)
st/mesa: get rid of unneeded ureg_writemask()
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_mesa_to_tgsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index 686ccb9734..97186f8dad 100644
--- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
@@ -741,9 +741,8 @@ emit_adjusted_wpos( struct st_translate *t,
/* Note that we bias X and Y and pass Z and W through unchanged.
* The shader might also use gl_FragCoord.w and .z.
*/
- ureg_ADD(ureg,
- ureg_writemask(wpos_temp, TGSI_WRITEMASK_XYZW),
- wpos_input, ureg_imm4f(ureg, value, value, 0.0f, 0.0f));
+ ureg_ADD(ureg, wpos_temp, wpos_input,
+ ureg_imm4f(ureg, value, value, 0.0f, 0.0f));
t->inputs[t->inputMapping[FRAG_ATTRIB_WPOS]] = ureg_src(wpos_temp);
}