Fix D3D Shader Debugger source variable mapping for matrix

If the matrix was mapped to a single register (i.e. special SSA ID -1) then it was expanded because a single element was mapped to different register the expansion was not happening because the matrix row was being set to be emitted in the code which tries to recombine rows

Apply similar fix for vector recombining code, do not emit the whole vector by default when assigning a single element and let the recombining code mark if the whole vector should be emitted
This commit is contained in:
Jake Turner
2025-11-12 04:23:46 +13:00
parent 0e84176738
commit 637626638c
+1 -3
View File
@@ -8790,7 +8790,6 @@ void Debugger::ParseDebugData()
for(uint32_t c = 0; c < columns; ++c)
usage->children[row].children[c].emitSourceVar = false;
}
usage->children[row].emitSourceVar = true;
}
}
// Assigning to a row/col
@@ -8852,9 +8851,9 @@ void Debugger::ParseDebugData()
for(uint32_t c = 0; c < columns; ++c)
usage->children[r].children[c].emitSourceVar = false;
}
usage->children[r].emitSourceVar = true;
}
}
usage->emitSourceVar = false;
}
else
{
@@ -8920,7 +8919,6 @@ void Debugger::ParseDebugData()
for(uint32_t x = 0; x < columns; ++x)
usage->children[x].emitSourceVar = false;
}
usage->emitSourceVar = true;
}
else
{