summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-30 17:06:06 -0700
committerEric Anholt <eric@anholt.net>2010-06-30 17:29:12 -0700
commit3acd92a91f3e799b9f839a074f4d76a0e88d71fe (patch)
tree5faee064a3c6f89c42eb851dffda77aabb7e38aa
parente558786a3ed52222c07f916e213b63dcba1890a2 (diff)
ir_to_mesa: Add support for ir_unop_sign.
Fixes glsl-fs-sign, glsl-vs-sign.
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index af9bdb5482..b140d96851 100644
--- 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]);