mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
A Windows import under 1 MiB returns to the write watch once its settle read has completed, though main-queue work submitted before the read may have used the import first, and an earlier import of the same pages may not have run its first use yet. On the NVIDIA driver (617.42) neither marks the pages once the read has completed, so the rewatch needs no wait for the main queue. The docs said the marking lasts until the import's first GPU use completes; they now say that a completed GPU use ends it, the settle read included. agc_import_settle_first_use submits 4096 copies of a 64 KiB import on the main queue before its settle read is queued. The import must return to the write watch while the copies still run, and the driver must mark none of its pages afterwards. agc_import_settle_earlier_import records 4096 copies of a 64 KiB window import, replaces it with the import of its whole 128 KiB range, and submits the copies only once the range is back in the write watch. The driver must mark none of the range's pages while they run. A driver that keeps marking fails either test.