test(agc): check device capabilities by name in the execution tests #1558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1558"
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 kr4y4 on 2026-10-08T12:31:54Z.
What
As noted in #1213, the execution tests check a device capability by copying its SPIR-V value into a local constant and searching
supportedCapabilitieswithstd::find. Twenty-four tests do this:Float64Capabilityspv::CapabilityFloat64Int64AtomicsCapabilityspv::CapabilityInt64AtomicsMinLodCapabilityspv::CapabilityMinLodArithmeticCapabilityspv::CapabilityGroupNonUniformArithmeticInt64ImageCapabilityspv::CapabilityInt64ImageEXTShaderClockCapabilityspv::CapabilityShaderClockKHRPixelInterlockCapabilityspv::CapabilityFragmentShaderPixelInterlockEXTVulkanTestDevice.hppnow hasTargetHasCapability(const SpirvTarget&, spv::Capability), and the tests call it with thespv::Capabilitynames. The local constants are removed.The execution test targets also get
3rdparty/SPIRV-Headers/include, asagc_driver_mesh_testsand the other agc test targets already have. The same capabilities are checked and the skip messages are unchanged.The other point from #1213, a test that pins the 64-bit atomics
FailEmitmessages, will be a separate PR.#921 edits the same include list in
core/libs/prx/libSceAgcDriver/CMakeLists.txt, replacing the Vulkan-Headers line, so whichever lands second needs a one-line rebase. With #921, the new line becomes${ANYPS5_SPIRV_HEADERS_INCLUDE_DIR}.git merge-treeagainst the other 40 open PRs that touch these files shows no conflicts.Tested
Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main at
1081602d. All targets build; the 24 tests were run on each device:ANYPS5_GPU=Intel: 21 skip, the same set as on main.shaderBufferInt64Atomics(8) andshaderImageInt64Atomics(1).shaderFloat64tests.shader_clock.image_sample_lod_clamp(shaderResourceMinLod).image_sample_bias_a16still runs and skips only its clamp cases.pixel_interlockandpixel_wave_reductionrun and pass.Checklist
main; no other open PR implements the same thing🤖 Generated with Claude Code