From 02581acd07af776aefab7ce752902270ba7a12b2 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 7 Sep 2020 08:14:51 +0200 Subject: [PATCH] r600/sfn: Fix bitfield ops and 2x16 split_y Don't reuse the dest register to make instruction dependency tracking easier. Signed-off-by: Gert Wollny Part-of: --- .../drivers/r600/sfn/sfn_emitaluinstruction.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.cpp b/src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.cpp index 03f1f11b95c..a6c4a34f90a 100644 --- a/src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.cpp @@ -1334,6 +1334,7 @@ bool EmitAluInstruction::emit_bitfield_insert(const nir_alu_instr& instr) auto t0 = get_temp_vec4(); auto t1 = get_temp_vec4(); auto t2 = get_temp_vec4(); + auto t3 = get_temp_vec4(); PValue l32(new LiteralValue(32)); unsigned write_mask = instr.dest.write_mask; @@ -1369,7 +1370,7 @@ bool EmitAluInstruction::emit_bitfield_insert(const nir_alu_instr& instr) for (int i = 0; i < 4; i++) { if (!(write_mask & (1<