r600/sfn: Fix use of cnde_int for bcsel
authorGert Wollny <gert.wollny@collabora.com>
Sat, 30 Jan 2021 18:07:38 +0000 (19:07 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Feb 2021 10:11:48 +0000 (10:11 +0000)
The boolean is an int, so use the int version of the opcode.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8800>

src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.cpp

index 413b221..cfd1563 100644 (file)
@@ -182,8 +182,8 @@ bool EmitAluInstruction::do_emit(nir_instr* ir)
    case nir_op_b32all_fequal4: return emit_any_all_fcomp(instr, op2_sete, 4, true);
 
    case nir_op_ffma: return emit_alu_op3(instr, op3_muladd_ieee);
-   case nir_op_b32csel: return emit_alu_op3(instr, op3_cnde,  {0, 2, 1});
-   case nir_op_bcsel: return emit_alu_op3(instr, op3_cnde,  {0, 2, 1});
+   case nir_op_b32csel: return emit_alu_op3(instr, op3_cnde_int,  {0, 2, 1});
+   case nir_op_bcsel: return emit_alu_op3(instr, op3_cnde_int,  {0, 2, 1});
    case nir_op_vec2: return emit_create_vec(instr, 2);
    case nir_op_vec3: return emit_create_vec(instr, 3);
    case nir_op_vec4: return emit_create_vec(instr, 4);