mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
ir_to_mesa: Implement f2b by comparing the arg to 0, not the result.
Fixes: glsl-fs-any
This commit is contained in:
parent
18a6023900
commit
66afcb5607
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue