OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1b0716
)
ir_to_mesa: Add support for ir_unop_rcp.
author
Eric Anholt
<eric@anholt.net>
Thu, 1 Jul 2010 18:23:02 +0000
(11:23 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 1 Jul 2010 18:23:02 +0000
(11:23 -0700)
This isn't used at the moment, but will be soon.
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
25267d7
..
dca2b10
100644
(file)
--- 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]);