mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 16:40:32 +00:00
On Windows an import of private writable memory above the settle floor called settleImport whenever the cached watch decision said private imports settle, without looking at the context's own settle queue. settleImport locks *context.settleQueueMutex, so a context with no settle queue threw std::system_error (EPERM) from the lock. The decision is cached under the VkDevice handle and outlives the device. A bare test device created at the handle of a destroyed driver device inherits "private imports settle" while having no settle queue. Since the settle floor went from 1 MiB to just over 64 KiB, the 128 KiB import of agc_driver_native_multisample_depth takes that path, and the test failed whenever the AMD driver reused the handle. Whether private imports settle now also asks the context for a settle queue and its mutex, as the deferred settle and dma-buf settle paths already do. Such an import stays compared and queues no deferred settle. agc_import_settle_deferred imports 128 KiB through a copy of its context without the settle queue and requires a compared import and no settle. The cached decision outliving its device is recorded as debt. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
754 B
754 B
libSceAgcDriver
add Functional
- Host import watch decision outlives its device (libSceAgcDriver) -
decideImportWatchkeeps its decision under theVkDevicehandle andClearHostImportsdoes not drop it, so a device created at the handle of a destroyed one inherits that device's decision without a probe of its own. A context with no settle queue does not settle under an inherited decision; the inherited choice between watching and comparing, and the dma-buf selection on Linux, are still taken as they are. Seen on Windows with AMD 26.11.2, where the bare device ofagc_driver_native_multisample_depthgot the handle of the last driver device in 12 of 40 runs