diag(windows-nui): dump full 16-element transform matrix (diagonal-only read was misleading)

This commit is contained in:
kinect-bot committed 2026-11-26 02:49:50 -05:00
1 parent dac3bb22d2
commit 32e729a1f1
1 file changed
+8 -9
+8 -9
View File
@@ -117,13 +117,9 @@ void DumpGameDisplayState() {
// validity flags/IDs (DAT_103e29cc, stride 0x20; flag byte at +0, id float at
// -4) so we can see live whether the filter validates our candidate and
// whether the matrix is identity.
uint32_t m0 = 0, m5 = 0, m10 = 0, m3 = 0, m7 = 0, m11 = 0;
SafeReadU32(base + 0x3d4a80u + 0x00u, &m0);
SafeReadU32(base + 0x3d4a80u + 0x14u, &m5);
SafeReadU32(base + 0x3d4a80u + 0x28u, &m10);
SafeReadU32(base + 0x3d4a80u + 0x0cu, &m3);
SafeReadU32(base + 0x3d4a80u + 0x1cu, &m7);
SafeReadU32(base + 0x3d4a80u + 0x2cu, &m11);
uint32_t mm[16] = {0};
for (uint32_t i = 0; i < 16; ++i)
SafeReadU32(base + 0x3d4a80u + i * 4u, &mm[i]);
char cand[160];
int off = 0;
for (uint32_t i = 0; i < 6; ++i) {
@@ -134,8 +130,11 @@ void DumpGameDisplayState() {
i, flag & 0xFFu, asf(idf));
if (off >= static_cast<int>(sizeof(cand)) - 24) break;
}
ShimLog("game-skel2: Mdiag=(%.3f,%.3f,%.3f) Mtrans=(%.3f,%.3f,%.3f) cand=%s",
asf(m0), asf(m5), asf(m10), asf(m3), asf(m7), asf(m11), cand);
ShimLog("game-skel2: M=[%.3f %.3f %.3f %.3f / %.3f %.3f %.3f %.3f / %.3f %.3f "
"%.3f %.3f / %.3f %.3f %.3f %.3f] cand=%s",
asf(mm[0]), asf(mm[1]), asf(mm[2]), asf(mm[3]), asf(mm[4]), asf(mm[5]),
asf(mm[6]), asf(mm[7]), asf(mm[8]), asf(mm[9]), asf(mm[10]), asf(mm[11]),
asf(mm[12]), asf(mm[13]), asf(mm[14]), asf(mm[15]), cand);
// Reference stage points the filter/picker compare against (DAT_103d3248/
// 3254/3260), so we can compute offline the distance our transformed hip