Files
AnyPS5/docs/dev/debt/changes/agc-settle-without-settle-queue.md
PlyxenandClaude Fable 5.2 ccafed0d8f fix(agc): keep a context with no settle queue off the settle path
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>
2026-11-24 14:29:56 +01:00

754 B

libSceAgcDriver

add Functional

  • Host import watch decision outlives its device (libSceAgcDriver) - decideImportWatch keeps its decision under the VkDevice handle and ClearHostImports does 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 of agc_driver_native_multisample_depth got the handle of the last driver device in 12 of 40 runs