projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e558786
)
ir_to_mesa: Add support for ir_unop_sign.
author
Eric Anholt
<eric@anholt.net>
Thu, 1 Jul 2010 00:06:06 +0000
(17:06 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 1 Jul 2010 00:29:12 +0000
(17:29 -0700)
Fixes glsl-fs-sign, glsl-vs-sign.
src/mesa/shader/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/shader/ir_to_mesa.cpp
b/src/mesa/shader/ir_to_mesa.cpp
index af9bdb548283ac5b72310379c52b6f02cdfdd6ca..b140d96851f82e05577f3a392976e6595e15c583 100644
(file)
--- a/
src/mesa/shader/ir_to_mesa.cpp
+++ b/
src/mesa/shader/ir_to_mesa.cpp
@@
-615,6
+615,9
@@
ir_to_mesa_visitor::visit(ir_expression *ir)
case ir_unop_abs:
ir_to_mesa_emit_op1(ir, OPCODE_ABS, result_dst, op[0]);
break;
+ case ir_unop_sign:
+ ir_to_mesa_emit_op1(ir, OPCODE_SSG, result_dst, op[0]);
+ break;
case ir_unop_exp:
ir_to_mesa_emit_scalar_op1(ir, OPCODE_EXP, result_dst, op[0]);