AGC performance-overlay test ignores ANYPS5_GPU and tests NVIDIA for AMD requests #7595

Closed
opened 2026-10-18 16:22:58 +00:00 by Amoenus · 1 comment
Amoenus commented 2026-10-18 16:22:58 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-18T16:22:58Z.


Status: fixed by merged PR #7602 on2026-10-18. Both changed file blobs match the tested fork commit932eeb085e; the evidence below remains pinned to that tested source.

Observed behavior

At exact main 91ddd9e3a616dba51fa37a1532a7e8ef00418fbd (including #6012), three fresh runs of agc_performance_overlay with ANYPS5_GPU=AMD Radeon(TM) Graphics all passed, but all three created the NVIDIA GeForce RTX 5080 device. The loader's Using ... with driver line and the fixture's full panel cost on NVIDIA GeForce RTX 5080 reports independently identify the actual GPU. This was not AMD coverage.

The fixture's private Device constructor uses devices.front() and never reads ANYPS5_GPU. #7570 addresses a different private fixture, SampledCacheBudget.cpp; it does not change this one. Scoped searches found no existing overlay-selector report/fix. Main39ff296960 was checked afterward; neither overlay test nor its AGC CMake registration changed.

Reproduction

On a machine with both NVIDIA and AMD Vulkan adapters, build the full runtime and agc_performance_overlay_tests, set ANYPS5_GPU to the AMD device name and ANYPS5_REQUIRE_VULKAN=1, then run:

ctest --test-dir BUILD -R "^agc_performance_overlay$" --repeat until-fail:3 --timeout 30 --output-on-failure -V

Inspect the actual loader device and the fixture's GPU name, rather than treating the requested environment value as evidence. Vulkan loader diagnostics can be enabled with VK_LOADER_DEBUG=driver,layer.

Expected: honor the case-insensitive requested device-name substring. An explicit unavailable request must fail instead of silently using another GPU or skipping.

Focused proposed fix and verification

Fork commit: 932eeb085e, branch codex/fix-overlay-test-gpu-selector. Two files; fixture/registration only. It follows the existing device-selection pattern, checks actual physical-device properties, and adds CPU selection cases plus a bounded actual-device regression. No production renderer behavior or title unblock is claimed.

  • Full Windows runtime/test builds passed before and after the change, and after restoring the control.
  • Fixed head:12 actual NVIDIA GPU executions and12 actual AMD GPU executions passed across the initial and restored matrices, plus6 CPU executions. Both complete overlay behavior and device-selection cases ran3 times per GPU in each matrix.
  • Restoring only the original devices.front() assignment makes the new AMD identity regression fail3/3, identifying NVIDIA each time. Restoring the exact fixed head makes both GPU matrices pass again.
  • A nonexistent explicit request, with ANYPS5_REQUIRE_VULKAN unset, fails all6 executions of the ordinary/selection modes; no skips or silent success.
  • Khronos validation1.4.363.0 actually loaded for GPU runs: zero VUIDs, validation errors or warnings. All executions fit30s. Cppcheck2.20.0 and clang-tidy23.1.3: no selected diagnostics or parser/configuration errors (5.265s analysis).

Hardware: NVIDIA GeForce RTX5080 10de:2c02, driver610.62/32.0.16.1062; AMD Radeon(TM) Graphics 1002:13c0, driver32.0.21036.18; Windows11 Enterprise26200. Ubuntu24.04 under WSL also passed the full runtime/test build,6 actual llvmpipe GPU executions and6 CPU executions, plus6 expected explicit-unavailable-request failures with no skips. Device: Mesa llvmpipe (LLVM20.1.2,256 bits), Mesa25.2.8. The Khronos validation layer is not installed there; those Linux results are behavioral coverage, not a clean-validation claim. The exact fork changes were subsequently carried upstream in merged #7602, preserving Romans Pokrovskis as the original commit author. The issue was automatically closed by that merge; no duplicate PR is needed.

AI-assisted: yes (Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5911592916 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7595). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-18T16:22:58Z. --- **Status:** fixed by merged [PR #7602](https://github.com/boykopovar/AnyPS5/pull/7602) on2026-10-18. Both changed file blobs match the tested fork commit932eeb085e; the evidence below remains pinned to that tested source. ### Observed behavior At exact main `91ddd9e3a616dba51fa37a1532a7e8ef00418fbd` (including #6012), three fresh runs of `agc_performance_overlay` with `ANYPS5_GPU=AMD Radeon(TM) Graphics` all passed, but all three created the **NVIDIA GeForce RTX 5080** device. The loader's `Using ... with driver` line and the fixture's `full panel cost on NVIDIA GeForce RTX 5080` reports independently identify the actual GPU. This was not AMD coverage. The fixture's [private Device constructor](https://github.com/boykopovar/AnyPS5/blob/91ddd9e3a616dba51fa37a1532a7e8ef00418fbd/core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp#L55) uses `devices.front()` and never reads `ANYPS5_GPU`. #7570 addresses a different private fixture, `SampledCacheBudget.cpp`; it does not change this one. Scoped searches found no existing overlay-selector report/fix. Main39ff296960 was checked afterward; neither overlay test nor its AGC CMake registration changed. ### Reproduction On a machine with both NVIDIA and AMD Vulkan adapters, build the full runtime and `agc_performance_overlay_tests`, set `ANYPS5_GPU` to the AMD device name and `ANYPS5_REQUIRE_VULKAN=1`, then run: ```text ctest --test-dir BUILD -R "^agc_performance_overlay$" --repeat until-fail:3 --timeout 30 --output-on-failure -V ``` Inspect the actual loader device and the fixture's GPU name, rather than treating the requested environment value as evidence. Vulkan loader diagnostics can be enabled with `VK_LOADER_DEBUG=driver,layer`. Expected: honor the case-insensitive requested device-name substring. An explicit unavailable request must fail instead of silently using another GPU or skipping. ### Focused proposed fix and verification Fork commit: [932eeb085e](https://github.com/Amoenus/AnyPS5/commit/932eeb085e8e7db2eff4615d9a24786001dc7ad7), branch `codex/fix-overlay-test-gpu-selector`. Two files; fixture/registration only. It follows the existing device-selection pattern, checks actual physical-device properties, and adds CPU selection cases plus a bounded actual-device regression. No production renderer behavior or title unblock is claimed. - Full Windows runtime/test builds passed before and after the change, and after restoring the control. - Fixed head:12 actual NVIDIA GPU executions and12 actual AMD GPU executions passed across the initial and restored matrices, plus6 CPU executions. Both complete overlay behavior and device-selection cases ran3 times per GPU in each matrix. - Restoring only the original `devices.front()` assignment makes the new AMD identity regression fail3/3, identifying NVIDIA each time. Restoring the exact fixed head makes both GPU matrices pass again. - A nonexistent explicit request, with `ANYPS5_REQUIRE_VULKAN` unset, fails all6 executions of the ordinary/selection modes; no skips or silent success. - Khronos validation1.4.363.0 actually loaded for GPU runs: zero VUIDs, validation errors or warnings. All executions fit30s. Cppcheck2.20.0 and clang-tidy23.1.3: no selected diagnostics or parser/configuration errors (5.265s analysis). Hardware: NVIDIA GeForce RTX5080 `10de:2c02`, driver610.62/32.0.16.1062; AMD Radeon(TM) Graphics `1002:13c0`, driver32.0.21036.18; Windows11 Enterprise26200. Ubuntu24.04 under WSL also passed the full runtime/test build,6 actual llvmpipe GPU executions and6 CPU executions, plus6 expected explicit-unavailable-request failures with no skips. Device: Mesa llvmpipe (LLVM20.1.2,256 bits), Mesa25.2.8. The Khronos validation layer is not installed there; those Linux results are behavioral coverage, not a clean-validation claim. The exact fork changes were subsequently carried upstream in merged #7602, preserving Romans Pokrovskis as the original commit author. The issue was automatically closed by that merge; no duplicate PR is needed. AI-assisted: yes (Codex).
MarcZX10 commented 2026-10-18 16:37:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T16:37:15Z.


I opened PR #7602 carrying your tested overlay-selection fix. The commit preserves Romans Pokrovskis as its original author. Local Linux configure and target build succeeded; I attempted the focused CTest, but this host's Xeon E5-1620 v2 lacks CPU features required by AnyPS5 libc, so the test process aborted before reaching its test code. Hosted checks are starting on the PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6252387106 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7595#issuecomment-6252387106). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T16:37:15Z. --- I opened [PR #7602](https://github.com/boykopovar/AnyPS5/pull/7602) carrying your tested overlay-selection fix. The commit preserves Romans Pokrovskis as its original author. Local Linux configure and target build succeeded; I attempted the focused CTest, but this host's Xeon E5-1620 v2 lacks CPU features required by AnyPS5 libc, so the test process aborted before reaching its test code. Hosted checks are starting on the PR.
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#7595
No description provided.