mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-15 04:10:35 +01: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> (cherry picked from commitba73792de0)
This commit is contained in:
parent
ca22a66dd9
commit
6303313da0
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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