From e27946ca110b69be75e999640ffd59fbb45ebe20 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 27 Aug 2021 17:50:11 +0100 Subject: [PATCH] aco: don't constant propagate to DPP instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Timur Kristóf Cc: mesa-stable Part-of: --- src/amd/compiler/aco_optimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 4a95ef8bb11..634c0939ea1 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -1058,7 +1058,7 @@ label_instruction(opt_ctx& ctx, aco_ptr& instr) unsigned bits = get_operand_size(instr, i); if (info.is_constant(bits) && alu_can_accept_constant(instr->opcode, i) && - (!instr->isSDWA() || ctx.program->chip_class >= GFX9)) { + (!instr->isSDWA() || ctx.program->chip_class >= GFX9) && !instr->isDPP()) { Operand op = get_constant_op(ctx, info, bits); perfwarn(ctx.program, instr->opcode == aco_opcode::v_cndmask_b32 && i == 2, "v_cndmask_b32 with a constant selector", instr.get());