mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-07 13:39:55 +00:00
FlushPending moves the overlapping images from the pending list to the flushing list and stores them under the GPU mutex. A FlushPending or a flush hook on another thread for the same range found nothing pending and returned while the store was still running, so the host read saw guest memory before the store; the queue-idle store hits this with any host read. When an overlapping image is being stored and this thread does not hold the GPU mutex, take it and check again until no overlapping image is left being stored, and report the range as stored so the hook syncs the recorded store. Fixes #7744