test(agc): honor GPU selection in pooled buffer checks #7104
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7104"
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-17T11:47:01Z.
What
Make
agc_driver_pooled_buffer_rangehonor its existingANYPS5_GPUdevice-name substring selector. It currently picks the first discrete adapter and only then checks the requested name, so requesting the AMD integrated GPU on an NVIDIA/AMD machine throws before device creation.Select the requested matching adapter during enumeration. An unset or empty selector retains the discrete-device preference; an unmatched name still throws. One fixture file, 3 additions / 2 deletions; no production changes.
Found while validating #6882 during PPSA99902 bring-up (discussion #4443). This enables actual AMD allocation/cleanup validation on a dual-GPU host; it does not change title execution. Prior report: https://github.com/boykopovar/AnyPS5/pull/6882#issuecomment-6233368117.
Tested
Baseline: unchanged main
1846719e46ec35a8cc1de1ca0db57fbcfab4af4b. Change:3f1dcad6ddcba68a941a8243b1f95e1c48c67b4a. Latest main checked before submission:e09dbc2b4231103552a108b2c582cee52e46be68; its intervening libc changes do not touch AGC, this fixture, or contribution guidance, and the branch merges cleanly.Reproduce on a host with NVIDIA discrete and AMD integrated adapters:
Main fails 3/3 fresh processes before
vkCreateDevice:On the change, every positive run verifies the actual fixture-reported vendor/device, zero leaked slab-metadata bytes, and the full pooled-buffer fixture success:
RTX 5080, full NVIDIA nameRadeonllvmpipeWindows positive runs loaded Khronos validation 1.4.363: zero validation errors/warnings. The Linux matrix did not explicitly enable that layer. Every fixture process completed under 1 second locally (30-second CTest limit).
Also: relinker, all system-library targets, this fixture and
agc_driver_graphics_testsbuild successfully on Windows GCC 15.2.0 and Linux GCC 13.3. The separate CPU graphics group passes 3/3 per OS. Changed-TU Cppcheck and clang-tidy are clean (7.623 seconds combined; no parse/configuration errors). Conventions andgit diff --checkpass. This is focused validation, not a full-suite or performance claim.Ran
tools/pr_overlap.py; manually inspected its uncomparable #6222 file: that PR only adds macOS Vulkan loading/portability setup in this fixture. #6788 changes runtime driver-name selection; #6943, #7057 and #7065 carry the pre-existing selector assertion but do not fix this selection loop. No duplicate implementation found.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-17T12:07:16Z.
Some 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/tests/execution/PooledBufferRange.cpp