mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
fix(shader): track the multi-register destinations of the quad SAD ops in vertex fetch analysis
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -158,7 +158,16 @@ std::uint32_t decodedDstSize(const RdnaInstruction& inst) {
|
||||
}
|
||||
|
||||
std::uint32_t embeddedFetchDstSize(const RdnaInstruction& inst) {
|
||||
return inst.op == RdnaOpcode::VMadU64U32 ? 2u : decodedDstSize(inst);
|
||||
switch (inst.op) {
|
||||
case RdnaOpcode::VMadU64U32:
|
||||
case RdnaOpcode::VQsadPkU16U8:
|
||||
case RdnaOpcode::VMqsadPkU16U8:
|
||||
return 2u;
|
||||
case RdnaOpcode::VMqsadU32U8:
|
||||
return 4u;
|
||||
default:
|
||||
return decodedDstSize(inst);
|
||||
}
|
||||
}
|
||||
|
||||
// How many consecutive SGPRs a scalar operand of the instruction names, over-estimated where the
|
||||
|
||||
Reference in New Issue
Block a user