From c2489d5a455664d587ed5ebd9e96599402161af4 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 16 Apr 2024 16:31:30 +0200 Subject: [PATCH] [dxbc] Fix array register anaylsis with multiple dst operands --- src/dxbc/dxbc_analysis.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dxbc/dxbc_analysis.cpp b/src/dxbc/dxbc_analysis.cpp index 8a8f44b5..dd4a5132 100644 --- a/src/dxbc/dxbc_analysis.cpp +++ b/src/dxbc/dxbc_analysis.cpp @@ -87,9 +87,9 @@ namespace dxvk { } for (uint32_t i = 0; i < ins.dstCount; i++) { - if (ins.dst[0].type == DxbcOperandType::IndexableTemp) { - uint32_t index = ins.dst[0].idx[0].offset; - m_analysis->xRegMasks[index] |= ins.dst[0].mask; + if (ins.dst[i].type == DxbcOperandType::IndexableTemp) { + uint32_t index = ins.dst[i].idx[0].offset; + m_analysis->xRegMasks[index] |= ins.dst[i].mask; } } }