r600/sfn: Handle b2b1 like it was a mov
authorGert Wollny <gert.wollny@collabora.com>
Sun, 12 Apr 2020 14:43:56 +0000 (16:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 15:10:43 +0000 (15:10 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4609>

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

index 056a54a54bf205f393f466dcc395d106cadc3b11..9d6e7a48b730c1fe755071a0f451285258311a3c 100644 (file)
@@ -55,6 +55,7 @@ bool EmitAluInstruction::do_emit(nir_instr* ir)
    case nir_op_b2f32: return emit_alu_b2f(instr);
    case nir_op_i2b1: return emit_alu_i2orf2_b1(instr, op2_setne_int);
    case nir_op_f2b1: return emit_alu_i2orf2_b1(instr, op2_setne_dx10);
+   case nir_op_b2b1:
    case nir_op_mov:return emit_alu_op1(instr, op1_mov);
    case nir_op_ftrunc: return emit_alu_op1(instr, op1_trunc);
    case nir_op_fabs: return emit_alu_op1(instr, op1_mov, {1 << alu_src0_abs});