AGC recorder fixtures ignore ANYPS5_GPU and prefer the discrete adapter #6219

Closed
opened 2026-10-15 04:46:01 +00:00 by Amoenus · 1 comment
Amoenus commented 2026-10-15 04:46:01 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-15T04:46:01Z.


Observed

The recorder's private Device in main d92a8dad3 ranks Vulkan 1.1 adapters by device type and never reads ANYPS5_GPU. The production VulkanDevice supports this selector through merged #876.

During our NVIDIA/AMD matrix, agc_tiled_resolve selected NVIDIA under both selectors:

Requested Actual recorder device
RTX 5080 NVIDIA GeForce RTX 5080
AMD Radeon(TM) Graphics NVIDIA GeForce RTX 5080

Five 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 ran agc_tiled_resolve five times with ANYPS5_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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5860251737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6219). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-15T04:46:01Z. --- ### Observed The recorder's private `Device` in [main d92a8dad3](https://github.com/boykopovar/AnyPS5/blob/d92a8dad390af1807cc91622b924252141816a5a/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp) ranks Vulkan 1.1 adapters by device type and never reads `ANYPS5_GPU`. The production `VulkanDevice` supports this selector through merged #876. During our NVIDIA/AMD matrix, `agc_tiled_resolve` selected NVIDIA under **both** selectors: | Requested | Actual recorder device | | --- | --- | | `RTX 5080` | NVIDIA GeForce RTX 5080 | | `AMD Radeon(TM) Graphics` | NVIDIA GeForce RTX 5080 | Five 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 ran `agc_tiled_resolve` five times with `ANYPS5_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](https://github.com/Amoenus/AnyPS5/commit/5aa3282c38cfaacc9db1bfdc2ef1307756ac1f66) 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](https://github.com/boykopovar/AnyPS5/pull/6225), from [validated fork commit82b4a665f](https://github.com/Amoenus/AnyPS5/commit/82b4a665fa5b6449af6a396259dfbe4ef96bd46f). 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.
jotitadev commented 2026-10-15 21:27:34 +00:00 (Migrated from github.com)
Author
Contributor

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. Unchanged main at 44df21632.

Test ANYPS5_GPU Runs Device in both Vulkan device: lines
agc_tiled_resolve llvmpipe 5 (all pass) NVIDIA GeForce RTX 3070
agc_tiled_resolve NVIDIA GeForce RTX 3070 5 (all pass) NVIDIA GeForce RTX 3070
agc_tiled_resolve empty 5 (all pass) NVIDIA GeForce RTX 3070
agc_pending_key_stores llvmpipe 30 NVIDIA GeForce RTX 3070

Control: agc_driver_store_over_untracked uses the production device and logs Selected GPU name=llvmpipe (LLVM 21.1.8, 256 bits) under the same ANYPS5_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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6202644489 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6219#issuecomment-6202644489). Originally posted by [jotitadev](https://github.com/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`. Unchanged `main` at `44df21632`. | Test | `ANYPS5_GPU` | Runs | Device in both `Vulkan device:` lines | |---|---|---|---| | `agc_tiled_resolve` | `llvmpipe` | 5 (all pass) | NVIDIA GeForce RTX 3070 | | `agc_tiled_resolve` | `NVIDIA GeForce RTX 3070` | 5 (all pass) | NVIDIA GeForce RTX 3070 | | `agc_tiled_resolve` | empty | 5 (all pass) | NVIDIA GeForce RTX 3070 | | `agc_pending_key_stores` | `llvmpipe` | 30 | NVIDIA GeForce RTX 3070 | Control: `agc_driver_store_over_untracked` uses the production device and logs `Selected GPU name=llvmpipe (LLVM 21.1.8, 256 bits)` under the same `ANYPS5_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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#6219
No description provided.