fix(tests): honor GPU selection in sampled-cache fixtures #7570
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7570"
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-18T14:51:30Z.
What
Honor
ANYPS5_GPUin the sampled-cache fixture's commonDeviceconstructor. It currently always usesdevices.front(): on our two-adapter host, requesting AMD still opens NVIDIA, so a passing legacy cache test does not establish AMD coverage.Use the existing Recorder fixture's Vulkan 1.1 device-selection pattern: case-insensitive name substrings, stable selection among equal matches, and discrete/integrated/virtual/CPU preference when no name is requested. An unavailable explicit request fails clearly, including without
ANYPS5_REQUIRE_VULKAN. Print the properties of the fixture's actualcontext.physicalin every GPU mode.Add CPU selection cases and a real-device regression that queries that same physical handle. The test-only control on main fails 3/3 AMD requests because it opens NVIDIA; the corrected constructor selects AMD and passes. This changes test fixture initialization and does not claim a title unblock.
Overlap was coordinated with #6937: its author requested this independent prerequisite land first and will adapt the pending-snapshot modes to the common selector. Existing AMD/NVIDIA requests are preserved. The rebase retains main's enabled storage-MSAA feature gate and its new without-storage-MSAA regression alongside our selector cases.
Tested
Current head
a09a79c208023febc830438522c8ba597f685f56, based on main48d61f53b46f1d0726889e4dd39c5ef2b3eb30cd. Rebased from published5e901e0c39; the only conflict was adjacent CMake test registration. Both main's new no-storage-MSAA case and our selection cases are retained. No production code changes in this PR.ANYPS5_REQUIRE_VULKAN: all seven modes fail clearly with the requested-name diagnostic; none skips or selects another device.devices.front(), keeping the exact regression and main's feature gate. All 3/3 AMD-requested checks fail atthe sampled-cache fixture physical device does not match ANYPS5_GPU, each reporting NVIDIA (10de:2c02). Restore exact source bytes, rebuild all libraries/relinker/fixture, then actual-device checks pass 3/3 per physical GPU, and CPU cases pass 3/3. CPU selection also passed 3/3 before and during the full matrix. These deliberate NVIDIA control executions are not counted as AMD coverage.641915a7f5; both changed files are byte-identical at the final head. No automatic fixes or formatting changes.The previously disclosed default-mode
VUID-VkImageCreateInfo-usage-00968is absent on this rebased main: #7573's feature-gate correction is merged and preserved. It is not a change made by this selector PR. The new no-storage-MSAA mode also passes on both devices.Earlier pinned evidence remains applicable at its own source: failing-main control
e0baee9d5aon maina62c724c38(AMD request opens NVIDIA, 3/3 failures); full Windows/Linux builds and repeated selector/cache checks at5e901e0c39on maine00260b6b3. Ubuntu 24.04 / GCC 13.3 / Mesa 25.2.8 lavapipe (LLVM 20.1.2) passed the earlier six GPU modes and CPU cases, including final-head repeats. Linux has not been rerun for this rebase, and its validation layer was unavailable; no new-head Linux or full-suite claim.No title-unblock or performance claim. Conventions, whitespace and range-diff checks pass. Before publication, main
05171bc66bwas checked: it adds system-configuration and device-memory placement work, and the candidate merges cleanly. Neither changes this selector, its fixture constructor selection or its registration. The full matrix above remains pinned to the tested main48 head; no merged-main051 validation claim.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 repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T15:09: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.txtL2365Some 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/execution/SampledCacheBudget.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/tests/execution/SampledCacheBudget.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/tests/execution/SampledCacheBudget.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T11:06:34Z.
The Windows Build run failed
agc_sampled_cache_device_selection: the CI build stubs this fixture (ANYPS5_AGC_EXECUTION_TESTS), the stub exits with the skip code, and this one test lackedSKIP_RETURN_CODE 77like its siblings. Added it as a commit on your branch; rest unchanged (selector logic, CPU cases, registration). Test-only change; merged.