fix(tests): honor ANYPS5_GPU in BDA device fixture #8167
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8167"
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 MarcZX10 on 2026-10-20T01:05:27Z.
What
The BDA test fixture now honors the existing
ANYPS5_GPUname-selection rules, prints the selected device, and reports the requested name plus enumerated Vulkan 1.1 device names when there is no match. A nonempty GPU request remains a hard failure even when Vulkan is otherwise optional; an unavailable Vulkan device is still skippable when there is no request and Vulkan is not required.The selector regression tests cover default discrete-first ranking, vendor selection, case-insensitive partial names, no match, and Vulkan 1.0 rejection. CPU tests also cover the optional-Vulkan skip policy. The three commits separate the test, selector implementation, and unmatched-request skip fix.
Tested
BdaDevice.cppC++20 syntax check: passed.deviceSelectionTests()compiled and run from the actualBdaDevice.cppin a temporary Linux CPU harness: passed, including requested-GPU skip-policy cases.python3 tools/check_conventions.py --base upstream/mainandgit diff upstream/main...HEAD --check: passed.8c301fb5c75d80544cb779a1c4e456667cbe4cd0) on Windows 11 with an RTX 5080 and AMD Radeon GPU, confirming device selection and identifying the optional-Vulkan unmatched-name case. The new skip-policy commit has not been rerun on hardware.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-20T01:13:46Z.
@MarcZX10 retested your updated exact head
3bac1f0b4355e884a64d96b288b434cdd7aa7bad(base remainsb50976750daa2d014460530132e63b682fd04cf4). The optional-Vulkan unmatched-name issue reported below is resolved.Fresh focused fixture/dependency build and targeted retest, without local changes:
agc_driver_bda_device_selection_cpuCTest: 3/3 passed, without Vulkan device creation.agc_driver_bda_device, verbose CTest with Vulkan required, disk cache disabled and loaded Khronos validation: 3/3 NVIDIA RTX 5080 and 3/3 AMD Radeon(TM) Graphics; actual devices verified from loader output.BdaDevice.cpp: no selected findings, timeouts or parser/configuration failures (5.252s analysis). Conventions passes.These are 9 verified GPU executions (6 NVIDIA, 3 AMD), 3 CPU-only passes and 6 expected rejections on the new head. Hardware/driver/OS are unchanged from below. I retained the existing main/8c comparison rather than rerunning unaffected selector behavior; this is not a new current-main comparison, full default build, full suite, Linux, title or performance claim.
Prior exact8c versus mainb509 comparison (historical pins)
@MarcZX10 independently validated exact head
8c301fb5c75d80544cb779a1c4e456667cbe4cd0against mainb50976750daa2d014460530132e63b682fd04cf4, without local changes. Matchingagc_driver_bda_device_testsand dependencies build on both pins.Windows 11 Enterprise 26200, WinLibs GCC 15.2 r7; NVIDIA RTX 5080 driver 610.62 / 32.0.16.1062 and AMD Radeon(TM) Graphics driver 32.0.21036.18; Khronos validation 1.4.363.0. Tested 2026-10-20.
Each common case ran
ctest -V -j1 --timeout 30 --repeat until-fail:3 -R '^agc_driver_bda_device$'with Vulkan required, shader cache/pipeline journal disabled, and loadedVK_LAYER_KHRONOS_validation. Actual devices below come from the loader, not the requested variable.ANYPS5_GPUrAdEoNAll 12 common CTests pass on each pin; the six AMD/mixed-name main passes do not establish AMD coverage. Three direct unmatched-name controls incorrectly succeed on main and correctly exit 1 on this head when Vulkan is required. Additional PR-only empty-name controls pass 3/3 on NVIDIA. Thus this head has 15 verified GPU executions: 9 NVIDIA, 6 AMD, plus the three expected rejections. No new VUIDs, validation errors/warnings, timeouts or unexpected skips in that selection. Cppcheck and clang-tidy on this head's
BdaDevice.cppalso report no selected findings or parser/configuration failures (5.202s analysis).The optional-Vulkan unmatched-name request returned 77 in 3/3 controls on this older8c head. Resolved by3bac and retested above. Our independently prepared reference commit remains on the fork; no duplicate PR will be opened.
Focused Windows fixture validation only; full default build, full suite, Linux, title and performance results are not claimed. Your CPU selector checks run inside the fixture; they are not counted as extra CPU-only processes here.
AI-assisted: yes (Codex); author responsible.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T01:18:41Z.
Thanks for the Windows multi-GPU validation and for catching the optional-Vulkan unmatched-name case. I pushed a follow-up commit at
3bac1f0b4355e884a64d96b288b434cdd7aa7bad: a nonemptyANYPS5_GPUrequest now makes device-selection failure fatal even whenANYPS5_REQUIRE_VULKANis unset. I added CPU policy cases and a standaloneagc_driver_bda_device_selection_cpuCTest so this behavior can be checked without a GPU. The exact-source CPU harness, C++ syntax check, conventions, and diff checks pass here; I could not run the full CTest target locally. Could you rerun the optional-Vulkan unmatched-name case on the updated head when convenient?Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T01:19:50Z.
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.txtL2147core/libs/prx/libSceAgcDriver/CMakeLists.txtL2147Some 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/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/BdaDevice.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/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/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/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/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/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/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/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/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/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T08:14:02Z.
Manual overlap check for #8206: both PRs add a separate CTest registration in
core/libs/prx/libSceAgcDriver/CMakeLists.txtnear the same block. #8167 addsagc_driver_bda_device_selection_cpufor the GPU-name selection policy; #8206 addsagc_driver_draw_unsupported_buffer_type_skip_refusedfor the refused-draw switch. The hunks are independent, cover different behavior and test executables, and do not create a dependency or duplicate.