AGC recorder fixtures ignore ANYPS5_GPU and prefer the discrete adapter #6219
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-15T04:46:01Z.
Observed
The recorder's private
Devicein main d92a8dad3 ranks Vulkan 1.1 adapters by device type and never readsANYPS5_GPU. The productionVulkanDevicesupports this selector through merged #876.During our NVIDIA/AMD matrix,
agc_tiled_resolveselected NVIDIA under both selectors:RTX 5080AMD Radeon(TM) GraphicsFive repetitions per selector passed, but the second set is not AMD validation. Both device-name lines in every invocation report NVIDIA. Other execution fixtures in the same matrix select the requested AMD device.
Independently reproduced on unchanged main
d92a8dad3: built the matching full library set and recorder executable, then ranagc_tiled_resolvefive times withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_GPU=AMD Radeon(TM) Graphics. All five numeric resolve tests pass while both device-name lines per invocation report NVIDIA. Unset/empty-selector controls also pass and select NVIDIA. The earlier observation on retained integration5aa3282c3 has identical selection code, but is kept separate from this unchanged-main result.Expected
Recorder fixtures should honor the existing case-insensitive name substring selector, retain default ranking for unset/empty requests, and reject an unmatched explicit request.
Windows 11 Enterprise 26200; WinLibs GCC 15.2.0 Release; RTX 5080 driver610.62/32.0.16.1062; AMD Radeon Graphics driver32.0.21036.18. The AMD adapter is available and used by the production-device fixtures.
Checked all528 open PR file inventories, including20 inventories larger than100 files, then inspected the recorder selection source in all42 matching PRs. None implements this filtering. #4847 changes production-device eligibility and does not cover the recorder.
Fix proposed in #6225, from validated fork commit82b4a665f. Full Windows build/checkers and all40 recorder groups pass per actual GPU (38 runtime fixtures and two CPU tests), with zero CTest failures/skips. Restoring the original rank-only logic triggers the new CPU assertion5/5; restored source is rebuilt and retested. The PR records mixed-case/default/unmatched controls, three existing internal “not tested” paths and validation limits. Existing reports already disclose the NVIDIA-only scope of these recorder runs.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T21:27:34Z.
Reproduced on Linux with an NVIDIA discrete GPU and lavapipe on the same machine.
Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus llvmpipe (LLVM 21.1.8) from Mesa. Ubuntu 26.04 (kernel 7.0.0-38), i7-8700. GCC 15.2, Release,
BUILD_TESTING=ON. Unchangedmainat44df21632.ANYPS5_GPUVulkan device:linesagc_tiled_resolvellvmpipeagc_tiled_resolveNVIDIA GeForce RTX 3070agc_tiled_resolveagc_pending_key_storesllvmpipeControl:
agc_driver_store_over_untrackeduses the production device and logsSelected GPU name=llvmpipe (LLVM 21.1.8, 256 bits)under the sameANYPS5_GPU=llvmpipe.The only way I found to run the recorder fixtures on lavapipe here was hiding the NVIDIA ICD (
VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json). That matters for #6500, whose CI failures are on lavapipe.Written with AI assistance (Claude Code). I ran the tests above on my machine.