aco: treat VINTERP_INREG as VALU
It's just v_fma with fixed DPP8 and builtin s_waitcnt_expcnt, so it can mostly be handled as a pure VALU instruction. Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21023>
This commit is contained in:
@@ -568,7 +568,7 @@ num_encoded_alu_operands(const aco_ptr<Instruction>& instr)
|
||||
else if (instr->opcode == aco_opcode::v_writelane_b32_e64 ||
|
||||
instr->opcode == aco_opcode::v_writelane_b32)
|
||||
return 2; /* potentially VOP3, but reads VDST as SRC2 */
|
||||
else if (instr->isVOP3() || instr->isVOP3P())
|
||||
else if (instr->isVOP3() || instr->isVOP3P() || instr->isVINTERP_INREG())
|
||||
return instr->operands.size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user