From 63ddeb09f47b78f3a614fb4451ffe93ada4592c9 Mon Sep 17 00:00:00 2001 From: AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> Date: Mon, 12 Oct 2026 17:00:45 +0200 Subject: [PATCH] test(agc): keep the retire test's mock device out of the Linux import probe On Linux with write watching (uffd write-protect), the first import asks the device whether a GPU write clears the protection (ProbeImportWriteProtection): it records a vkCmdCopyBuffer and a vkCmdFillBuffer on the import and submits them. The test's mock device records no commands, so agc_host_import_retire failed with "missing Vulkan function: vkCmdCopyBuffer" before it reached the retire (RADV, reported on #4515). The test now sets APS5_WRITE_WATCH_IMPORTS=unwatch, so its imports are compared as on Windows and the probe, which a mock cannot answer, does not run. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceAgcDriver/tests/HostImportRetireHold.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/libs/prx/libSceAgcDriver/tests/HostImportRetireHold.cpp b/core/libs/prx/libSceAgcDriver/tests/HostImportRetireHold.cpp index 26ed7d2f65..d1ce27fe58 100644 --- a/core/libs/prx/libSceAgcDriver/tests/HostImportRetireHold.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/HostImportRetireHold.cpp @@ -331,6 +331,7 @@ int main() { _putenv_s("APS5_RELEASE_ON_UNLOCK", "1"); #else setenv("APS5_RELEASE_ON_UNLOCK", "1", 1); + setenv("APS5_WRITE_WATCH_IMPORTS", "unwatch", 1); #endif try { IdleRetireOutlivesTheHold();