test(agc): match ANYPS5_GPU ignoring case in two more fixtures #10050
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10050"
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 SandstromPL on 2026-10-23T06:31:10Z.
What
ANYPS5_GPUis a case-insensitive substring of the device name: that is how the driver matches it (VulkanDevice.cpp), and howdocs/dev/ENVIRONMENT.mdanddocs/user/USAGE.mddescribe it. Two fixtures that open their own Vulkan device match it case-sensitively instead:PooledBufferRangeusesstd::strstr, from #7104. With a request it matches nothing, it keeps the first device and then refuses it:selected device does not match ANYPS5_GPU.NativeMultisampleDepthusesstd::string::find. With a request it matches nothing, it finds no device:no Vulkan 1.1 device.So a request the driver accepts, such as
ANYPS5_GPU=nvidiaon an NVIDIA GPU, makes both report a skip, and ctest still prints100% tests passed. UnderANYPS5_REQUIRE_VULKANthey fail instead.Both now pick their device with #9253's
SelectFixturePhysicalDevice, which follows the driver's rule. This depends on #9253, which adds that helper; until #9253 merges, its commit shows here too.On machines with more than one device, this also changes two choices:
ANYPS5_GPU,PooledBufferRangenow ranks devices by type (discrete, integrated, virtual, then the rest) and needs Vulkan 1.1. Before, it took the first discrete device, or else the first device.NativeMultisampleDepthnow takes the first matching device instead of the best-ranked match. This is what the driver does, and since #6727 the fixture also uses the driver's own device, so the two now pick the same GPU.As in #9253, the helper does not skip a device that lacks a graphics and compute queue, as the driver does. Neither fixture checked queues before.
The other four fixtures that select their own device (
Recorder,PerformanceOverlay,SampledCacheBudget,BdaDevice) already match ignoring case, so this PR leaves them as they are.Tested
Linux (Ubuntu 24.04, GCC 13.3), NVIDIA GeForce RTX 3050 Ti Laptop GPU (driver 580.178.04). The
mainruns are onmain0db47b263. The PR runs are on the samemainwith #9253 and this PR merged (a clean merge). All runs useANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1.The 14 tests are:
agc_driver_pooled_buffer_range;NativeMultisampleDepthtests (agc_driver_native_multisample_depth,agc_driver_native_depth_clears,agc_driver_native_depth_clear_refusals,agc_driver_native_depth_retirement);ANYPS5_GPUmainNVIDIAnvidia,geforce rtxagc_driver_pooled_buffer_range(selected device does not match ANYPS5_GPU) and the fourNativeMultisampleDepthtests (no Vulkan 1.1 device); withoutANYPS5_REQUIRE_VULKANthe same 5 are skippedno such device 1d3d154fmainno Vulkan 1.1 device whose name contains ANYPS5_GPU="no such device 1d3d154f"; devices: NVIDIA GeForce RTX 3050 Ti Laptop GPUVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(ctest -V), the 14 pass onmainand with this PR. The layer loads in both logs.VUID-VkDeviceCreateInfo-pNext-pNextlines, all in the fourNativeMultisampleDepthtests and already onmain.agc_driver_fixture_device_selectionpasses, with the new case.This machine has one GPU, so the choices between several devices are covered only by the CPU test.
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)🤖 Generated with Claude Code