1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 13:24:20 +01:00

[dxbc] Fix array register anaylsis with multiple dst operands

This commit is contained in:
Philip Rebohle 2024-04-16 16:31:30 +02:00
parent 6ef98c613f
commit c2489d5a45

View File

@ -87,9 +87,9 @@ namespace dxvk {
} }
for (uint32_t i = 0; i < ins.dstCount; i++) { for (uint32_t i = 0; i < ins.dstCount; i++) {
if (ins.dst[0].type == DxbcOperandType::IndexableTemp) { if (ins.dst[i].type == DxbcOperandType::IndexableTemp) {
uint32_t index = ins.dst[0].idx[0].offset; uint32_t index = ins.dst[i].idx[0].offset;
m_analysis->xRegMasks[index] |= ins.dst[0].mask; m_analysis->xRegMasks[index] |= ins.dst[i].mask;
} }
} }
} }