test(agc): register the full recorder run with CTest #5211
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5211"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by veosett on 2026-10-13T14:43:43Z.
What
Register the no-argument
agc_driver_recorder_testsrun asagc_driver_recorder, with return code 77 as a skip and a 30-second timeout. The flag-scoped CTest entries leave the full main flow, including stale-generation and import-window coverage, unregistered. Preserve the current main's recorder entries and scope the Windows libc runtime path to the new entry.Depends on #5883: the rebased registration without that dependency fails at
(9) a scan under a pending write was kepton both Windows/RX 6900 XT and Linux/lavapipe. The pending-store implementation synchronizes an unknown DCC key write before proving the keys, so that proof is stable. Carry its assertion/counter correction from AnzouBeli's1b3f2e098, preserving authorship; the existing data and known-key-fill checks remain active. The imported code comment is removed to meet the repository conventions.The registration carries the offered handoff from closed, unmerged #3354, retaining blawesom's authorship. The fixture also requires
/dev/udmabufbefore using DMA-BUF imports on Linux, with a diagnostic when it is unavailable; extension presence alone does not provide the kernel device.Added
--read-tracking-onlyto isolate the Radeon 860M report in this comment. The original queue wait and all signaled-read/no-reaping assertions are retained. vkQueueWaitIdle already waits for completion of prior queue submissions. The reported failure did not reproduce on the devices below; no fix or validation on Radeon 860M is claimed. The isolated command isagc_driver_recorder_tests --read-tracking-only, withANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1.Production library code is unchanged.
Tested
Head
a95e122dca1f59e6f60f8a37774d47cfabd34de5, based on maine154f5658524bf3b6fd2aed987d31f61bfdb64d3; Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON:libs,relinkerandagc_driver_recorder_tests; 34 passed, 0 skipped, zero failures across 34 recorder CTest entries (7.87 s total; first full run 1.32 s). The no-argument run also passed with the shader cache disabled.ANYPS5_NO_SHADER_CACHE=1.Limits: the full run reports compared host imports and retains the existing feature guards. On Linux,
agc_shadowed_key_storesreturns skip code 77 because no watched host memory is imported under a unit shadow. WSL has no/dev/udmabuf; the fixture reports that unavailable path. No Radeon 860M, NVIDIA, or console/title execution is claimed.Checklist
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T22:05:36Z.
A data point for registering the full run: on another AMD Windows driver, the no-argument run fails on plain
main.Setup: Windows 11 (26300), Radeon 860M (RDNA 3.5 iGPU, driver 32.0.13058.8001, Vulkan driver string
AMD proprietary driver 24.30.58.08 (LLPC)), WinLibs GCC 15.2.0, Release,main665ad7da7without this PR.agc_driver_recorder_testswith no argument, run from the repository root withANYPS5_NO_SHADER_CACHE=1and the unpatched libraries onPATH: 5 of 5 runs exit 1 atThat is the check in
readTrackingTestsright afterdevice.WaitQueue()for the empty batch (tests/Recorder.cpp, near line 562). On this driverPendingReadOverlapsstill sees the empty batch's read once the queue is idle. Your RX 6900 XT run passed, so this looks driver- or device-specific. As this PR stands,agc_driver_recorderwould fail on this machine.The flag-scoped entries are not affected.
agc_multisample_guest_access(--multisample-only) and the other registered recorder entries pass here.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T18:06:34Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/Recorder.cppL54Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T18:33:38Z.
Checked on current main:
agc_driver_recorderregisters and passes (6/6 no-argument runs and--read-tracking-onlyon RADV), the diff only touches the test CMake andtests/Recorder.cpp, and the carried #5883 assertion change matches the current pending-key behaviour. The Radeon 860M failure reported above predates this PR and stays open as its own issue. Merging once the full Build is green.