aco: don't constant propagate to DPP instructions
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12601>
This commit is contained in:
parent
f4b61e9061
commit
e27946ca11
|
@ -1058,7 +1058,7 @@ label_instruction(opt_ctx& ctx, aco_ptr<Instruction>& 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());
|
||||
|
|
Loading…
Reference in New Issue