mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
aco/optimizer: fix parsing salu p_insert as shift
Fixes: 88f7e3fff3 ("aco/optimizer: parse pseudo alu instructions")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39412>
This commit is contained in:
parent
830d6de9ff
commit
ba73792de0
1 changed files with 1 additions and 1 deletions
|
|
@ -1190,7 +1190,7 @@ alu_opt_gather_info(opt_ctx& ctx, Instruction* instr, alu_opt_info& info)
|
|||
info.operands.push_back({instr->operands[0]});
|
||||
if (instr->definitions[0].regClass() == s1) {
|
||||
info.defs.push_back(instr->definitions[1]);
|
||||
info.opcode = aco_opcode::v_lshl_b32;
|
||||
info.opcode = aco_opcode::s_lshl_b32;
|
||||
info.format = Format::SOP2;
|
||||
std::swap(info.operands[0], info.operands[1]);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue