test(agc): honor GPU selection in recorder fixtures #6225
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6225"
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 Amoenus on 2026-10-15T05:19:15Z.
What
Closes #6219. Honor the existing
ANYPS5_GPUselector in the recorder's private test device, using case-insensitive name-substring matching as introduced for the production device in #876.Keep default adapter ranking for unset/empty requests and reject an unmatched explicit request. Extract selection over device properties so a CPU test covers ranking, case/substring matching, missing names, Vulkan-version eligibility and enumeration-order ties.
Checked the selection code in43 open PRs touching the recorder, including #6222; none implements this filtering. #4847 concerns production-device eligibility. Depends on none.
Tested
Head
82b4a665fa5b6449af6a396259dfbe4ef96bd46f, base maind92a8dad390af1807cc91622b924252141816a5a; Windows11 Enterprise26200, WinLibs GCC15.2.0 Release, bundled dependencies, SPIRV-Tools enabled.agc_tiled_resolveruns requesting AMD selected NVIDIA; the numeric test passes but the physical-device assertion fails. Unset/empty controls select NVIDIA.ANYPS5_REQUIRE_VULKAN=1.Three existing internal cases print “not tested” under compared imports:
agc_storage_kept_unit_settle,agc_unit_shadowandagc_draw_inputs_in_place. Their other cases pass; those guarded paths are excluded from the coverage claim.Our validation scope: Windows fixtures. We did not run Linux, the complete repository CTest suite or a title replay for this independent head. Full upstream CI requires maintainer dispatch.
Independent Linux helper coverage
simonbbby reports five fresh-process passes at the exact PR head on Ubuntu24.04/GCC13.3: the unchanged CPU fixture and selector helper, plus real enumeration of two RTX3090 adapters, RADV1002:13c0 and llvmpipe. Mixed-case requests select the intended vendor/CPU device; rank-only negative control fails. This is external standalone-helper evidence: it does not exercise the recorder executable, environment-variable integration, logical devices/queues, GPU commands or a title. Their full configure is blocked by SDL XRandR development support.
Independent Linux recorder coverage
jotitadev tested the actual recorder executable, head
82b4a665fmerged onto main44df21632: Ubuntu 26.04, GCC 15.2, NVIDIA RTX 3070 driver 595.99.02 and llvmpipe LLVM 21.1.8. Tiled resolve passes 3/3 on each requested device, an unmatched selector skips, and pending-key stores pass 3/3 on NVIDIA. With llvmpipe selected while both ICDs are installed, pending-key stores fail 23/23; restricting enumeration to lavapipe passes 10/10. The selector works and exposed a separate pending-store fixture defect tracked in #6500. MarcZX100 subsequently identified the partial block initialization; #6560, merged as4eb91eacd, zeroes the entire block. The Linux results above were collected on44df21632, before that correction; no fresh Linux rerun on the corrected main or claim that every recorder group passes on Linux. External reports, not rerun here.Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-15T06:24:16Z.
Independent Linux selection-helper coverage at exact head
82b4a665fa5b6449af6a396259dfbe4ef96bd46f: Ubuntu 24.04, kernel 7.0.0-38, Ryzen 9 9950X, GCC 13.3.I compiled this head's unchanged
selectDeviceanddeviceSelectionTestsfunction bodies in a small standalone harness. After the CPU fixture, it creates a real Vulkan 1.1 instance and supplies the actualvkEnumeratePhysicalDevices/vkGetPhysicalDevicePropertiesresults to the same selector. It uses the installed Vulkan loader and existing bundled Vulkan headers; no fabricated device properties are used for the real-enumeration part.All four devices are visible together, without pinning an ICD:
10de:2204(first of two)nViDiA10de:2204rAdV1002:13c0lLvMpIpE10005:00005/5 fresh-process runs pass, including the PR's complete CPU fixture and the real-enumeration checks. The RADV result is checked by vendor ID, rather than trusting the CPU-model-like name this Mesa build reports.
Negative control in a separate scratch copy: remove name filtering and restore rank-only selection. The extracted CPU fixture exits 1 with
a requested integrated GPU lost to an unrelated discrete GPU. The five passing runs use the unchanged PR helper; the checkout is clean.Scope: request strings are passed directly to the helper. No full recorder fixture, environment-variable-to-recorder integration, logical-device/queue creation, GPU command execution, or title result is claimed. HAL's ordinary full configure remains blocked by SDL XRandR development support, so these are standalone helper results rather than
agc_recorder_device_selectionCTest results.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:17:00Z.
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/CMakeLists.txtL1057Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T21:27:28Z.
Review: COMMENTED
Linux run of the recorder executable itself, which the description lists as not covered (the Linux data so far is a standalone harness).
Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus llvmpipe (LLVM 21.1.8). Ubuntu 26.04 (kernel 7.0.0-38), i7-8700. GCC 15.2, Release,
BUILD_TESTING=ON. Head82b4a665fmerged ontomain44df21632, no conflicts.GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), llvmpipe (Mesa, LLVM 21.1.8), Linux
ANYPS5_GPUVulkan device:linesagc_tiled_resolvellvmpipeagc_tiled_resolveNVIDIA GeForce RTX 3070agc_pending_key_storesNVIDIA GeForce RTX 3070agc_tiled_resolvenomatch-xyzno Vulkan 1.1 device matching ANYPS5_GPU="nomatch-xyz"agc_pending_key_storesllvmpipea range wider than the pending fill was known, or waited formainselects NVIDIA in every one of these cases.The selection works. The new failure is in
agc_pending_key_stores, which this PR makes reachable here: llvmpipe selected while the NVIDIA ICD is also installed. WithVK_DRIVER_FILESset to the lavapipe ICD only, the same build passes 10/10, and the logs of the two cases are identical up to the assertion./dev/udmabufaccess makes no difference: 13 of the failing runs had it accessible, 10 denied through anLD_PRELOADshim. It is the assertion of #6500, where the numbers on unchangedmainare.Written with AI assistance (Claude Code). I ran the tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T22:06:26Z.
Thanks for testing the recorder itself on Linux and for separating device selection from the assertion failure. The lavapipe
agc_pending_key_storesfailure you surfaced is tracked in #6500 and was root-caused to the fixture clearing only part of its block; #6560 zeroes the full block. That makes the selection result here useful independently: this PR lets the test actually run on the requested device, exposing the separate fixture defect.Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T23:41:25Z.
Additional current-integration validation: 5c23b59fe adds this exact head
82b4a665fto #6973's initializer/array/layout composition on mainf6a2091b6.Before this selection fix, the recorder's
--multisample-onlyfixture logged NVIDIA RTX 5080 even withANYPS5_GPU=AMD. With it, the same behavioral fixture passes three fresh processes each on verified NVIDIA RTX 5080, AMD Radeon Graphics and Linux llvmpipe; logs confirm the actual requested device. All production sources and the complete guest-access test function are byte-identical across the comparison; only the recorder selector and its CMake unit-test registration differ.agc_recorder_device_selectionalso passes on Windows and Linux.Windows 11 Enterprise 26200, NVIDIA 610.62/32.0.16.1062 and AMD 32.0.21036.18; Ubuntu 24.04 WSL2, Mesa 25.2.8 llvmpipe LLVM 20.1.2. Vulkan required, project shader cache disabled, serial 30 s CTests. This is validation of the adapted composition, not a fresh test of the unchanged old-base PR head or a title run. The corrected coverage scope is recorded in #6973. AI-assisted: Codex; author responsible.