aco/optimizer: fix call to can_use_opsel() in apply_insert()
The definition index is -1.
Fixes: 54292e99c7 ('aco: optimize 32-bit extracts and inserts using SDWA ')
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15551>
This commit is contained in:
committed by
Marge Bot
parent
8006179cfd
commit
b98a9dcc36
@@ -3104,7 +3104,7 @@ apply_insert(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
||||
assert(sel);
|
||||
|
||||
if (instr->isVOP3() && sel.size() == 2 && !sel.sign_extend() &&
|
||||
can_use_opsel(ctx.program->chip_class, instr->opcode, 3, sel.offset())) {
|
||||
can_use_opsel(ctx.program->chip_class, instr->opcode, -1, sel.offset())) {
|
||||
if (instr->vop3().opsel & (1 << 3))
|
||||
return false;
|
||||
if (sel.offset())
|
||||
|
||||
Reference in New Issue
Block a user