diff --git a/core/shader/recompiler/Translation/src/EmbeddedVertexFetch.cpp b/core/shader/recompiler/Translation/src/EmbeddedVertexFetch.cpp index da66abcb0..e55a8ceaa 100644 --- a/core/shader/recompiler/Translation/src/EmbeddedVertexFetch.cpp +++ b/core/shader/recompiler/Translation/src/EmbeddedVertexFetch.cpp @@ -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