Module: Mesa
Branch: glsl2
Commit: 8761fcc2bf964d26c70229c712ce446dbe504ab7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8761fcc2bf964d26c70229c712ce446dbe504ab7

Author: Eric Anholt <[email protected]>
Date:   Thu Jul  1 11:23:02 2010 -0700

ir_to_mesa: Add support for ir_unop_rcp.

This isn't used at the moment, but will be soon.

---

 src/mesa/shader/ir_to_mesa.cpp |    3 +++
 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 25267d7..dca2b10 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -618,6 +618,9 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
    case ir_unop_sign:
       ir_to_mesa_emit_op1(ir, OPCODE_SSG, result_dst, op[0]);
       break;
+   case ir_unop_rcp:
+      ir_to_mesa_emit_scalar_op1(ir, OPCODE_RCP, result_dst, op[0]);
+      break;
 
    case ir_unop_exp:
       ir_to_mesa_emit_scalar_op1(ir, OPCODE_EXP, result_dst, op[0]);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to