diff options
author | Eric Anholt <[email protected]> | 2010-08-23 12:53:39 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-23 12:58:07 -0700 |
commit | 66afcb560771b6ba6ad668156e9f442e86b9a7a2 (patch) | |
tree | 63f1176ed09c8338df79c7f49079b7f868a72d61 /src/mesa/program/ir_to_mesa.cpp | |
parent | 18a60239001c27ff98739865d5fc70fd3d011b2e (diff) |
ir_to_mesa: Implement f2b by comparing the arg to 0, not the result.
Fixes: glsl-fs-any
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 17ebdbb220b..7a615f2d58f 100644 --- 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]); |