diag(windows-nui): also log copied-frame dwFrameNumber/pFrameTexture + game dedupe field to confirm FUN_100125d0 skips LockRect via frame-number dedupe
This commit is contained in:
1 parent
2857c2df3b
commit
e93105b31c
1 file changed
+17
-2
@@ -66,11 +66,26 @@ void DumpGameDisplayState() {
|
||||
SafeReadU32(nui + 0x159cu, &fp1);
|
||||
SafeReadU32(nui + 0x28u, &nui_status);
|
||||
}
|
||||
// Per-frame dedupe state: FUN_100125d0 skips LockRect when the copied frame's
|
||||
// dwFrameNumber (fp+0x8) equals the display struct's last-processed value
|
||||
// (manager + 0x1698 + idx*0x80 + 0x20). Also read pFrameTexture (fp+0x14).
|
||||
uint32_t d_num = 0, d_tex = 0, c_num = 0, c_tex = 0, dedupe_d = 0, dedupe_c = 0;
|
||||
if (fp0 != 0) {
|
||||
SafeReadU32(fp0 + 0x08u, &d_num);
|
||||
SafeReadU32(fp0 + 0x14u, &d_tex);
|
||||
}
|
||||
if (fp1 != 0) {
|
||||
SafeReadU32(fp1 + 0x08u, &c_num);
|
||||
SafeReadU32(fp1 + 0x14u, &c_tex);
|
||||
}
|
||||
SafeReadU32(mgr + 0x16b8u, &dedupe_d); // depth struct +0x20
|
||||
SafeReadU32(mgr + 0x1738u, &dedupe_c); // color struct +0x20
|
||||
ShimLog("game-introspect: mgr=0x%08X nui=0x%08X mask(+10)=0x%X committed(+c)=0x%X "
|
||||
"flags(+14)=0x%X enDepth(+16c0)=0x%02X enColor(+1740)=0x%02X "
|
||||
"fp0(+1598)=0x%08X fp1=0x%08X nuiStatus(+28)=%u",
|
||||
"fp0(+1598)=0x%08X fp1=0x%08X nuiStatus(+28)=%u | "
|
||||
"depth[num=%u tex=0x%08X last=%u] color[num=%u tex=0x%08X last=%u]",
|
||||
mgr, nui, mask, committed, flags, en_depth & 0xFFu, en_color & 0xFFu,
|
||||
fp0, fp1, nui_status);
|
||||
fp0, fp1, nui_status, d_num, d_tex, dedupe_d, c_num, c_tex, dedupe_c);
|
||||
}
|
||||
|
||||
BOOL CALLBACK InitSensorLock(PINIT_ONCE, PVOID, PVOID*) {
|
||||
|
||||
Reference in new issue
Block a user