mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
The trap was released when FlushPending took the image out of the pending registry, before it waited for GpuMutex, so a read in between saw the old bytes; cache eviction and explicit write-backs did not release it at all. Every store now releases it in writeBackLayers: after recording the GPU copy into the import, or before the first CPU access on the CPU path, which also releases the traps of other images on the same pages. A trapped image is stored whole, and direct memory mapped at a second address is not trapped. Co-Authored-By: Claude Opus 5.5 <[email protected]>