projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18a6023
)
ir_to_mesa: Implement f2b by comparing the arg to 0, not the result.
author
Eric Anholt
<eric@anholt.net>
Mon, 23 Aug 2010 19:53:39 +0000
(12:53 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 23 Aug 2010 19:58:07 +0000
(12:58 -0700)
Fixes: glsl-fs-any
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 17ebdbb220bae9b4f4d7a699614eba949c5b4da2..7a615f2d58fa1d032e8e30f82db4d17c2ec2754e 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-911,7
+911,7
@@
ir_to_mesa_visitor::visit(ir_expression *ir)
case ir_unop_f2b:
case ir_unop_i2b:
ir_to_mesa_emit_op2(ir, OPCODE_SNE, result_dst,
-
result_src
, src_reg_for_float(0.0));
+
op[0]
, src_reg_for_float(0.0));
break;
case ir_unop_trunc:
ir_to_mesa_emit_op1(ir, OPCODE_TRUNC, result_dst, op[0]);