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>
(cherry picked from commit ba73792de0)
This commit is contained in:
Georg Lehmann 2026-01-20 19:41:02 +01:00 committed by Eric Engestrom
parent ca22a66dd9
commit 6303313da0
2 changed files with 2 additions and 2 deletions

View file

@ -2164,7 +2164,7 @@
"description": "aco/optimizer: fix parsing salu p_insert as shift",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "88f7e3fff3dfc31f97ebc944ce0f638b9a3a5437",
"notes": null

View file

@ -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 {