projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e393350
)
st/mesa: get rid of unneeded ureg_writemask()
author
Brian Paul
<brianp@vmware.com>
Fri, 23 Jul 2010 19:50:09 +0000
(13:50 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 23 Jul 2010 19:50:09 +0000
(13:50 -0600)
src/mesa/state_tracker/st_mesa_to_tgsi.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_mesa_to_tgsi.c
b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index 686ccb973442a3840f0abcd19a833206a68d8216..97186f8dadf155be1e847460501382026877ca43 100644
(file)
--- 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);
}