mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 13:59:56 -04:00
With shadow storage a write-back at a fence copies a page that has no base copy whole from the shadow into guest memory. Every write the replay records gets base copies, so such a page means the pool the write was noted on was finalized before the fence and another was made at its address: the new record's shadow is a copy of guest memory from its own start, holds no byte of that write, and went over everything the CPU had written to the page since. The page is now left alone when the record is younger than the submission whose fence it is, or when the CPU has written the page since the shadow's last copy-in; the shadow line counts such pages. --probe-vkmem has the case: with NX2NAVI_SHADOW=1 it fails without this change (0x11 over the CPU's 0x22, with imports and with mirrors) and passes with it, as does the run without shadow storage. Whether a game does finalize and remake a pool inside that window was not observed in play. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
74 KiB
74 KiB