aco/gfx12: disable s_cmpk optimization

These opcodes were removed.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Acked-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29162>
This commit is contained in:
Rhys Perry 2024-05-03 12:05:01 +01:00 committed by Marge Bot
parent 2c4f561708
commit 4abe5b7927
1 changed files with 1 additions and 1 deletions

View File

@ -5382,7 +5382,7 @@ apply_literals(opt_ctx& ctx, aco_ptr<Instruction>& instr)
}
}
if (instr->isSOPC())
if (instr->isSOPC() && ctx.program->gfx_level < GFX12)
try_convert_sopc_to_sopk(instr);
/* allow more s_addk_i32 optimizations if carry isn't used */