test(agc): skip the 4_4_4_4 partial write test without shaderStorageImageReadWithoutFormat #11943
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11943"
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 GiannisG1 on 2026-10-27T13:21:39Z.
What
agc_driver_packed_unorm4444_partial_writefails on devices withoutshaderStorageImageReadWithoutFormat:A partial write of a 4_4_4_4 target is merged in the pixel shader:
MergeColorTargetreads the target throughEmitStorageImageRead, which needsStorageImageReadWithoutFormatand throws without it (SpirvDescriptors.cpp:241;Graphics.cpp:10543expects that failure). The test checks onlyfragmentShaderPixelInterlock.It now also checks
TargetHasCapability(device->Target(), spv::CapabilityStorageImageReadWithoutFormat), the capability the recompiler checks, and returns 77 withskipped, the device lacks shaderStorageImageReadWithoutFormat.agc_driver_packed_unorm4444_multisample_partial_writereads the target the same way onmain, but #11557 moves those merges into a compute shader that declares its image formats and rewrites that test's checks, so this PR leaves it alone.Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release,
BUILD_TESTING=ON, onmain3fea2a937.agc_driver_packed_unorm4444_partial_write, 3 runs per device:main3fea2a937shaderStorageImageReadWithoutFormatfalse)To check the skip on drivers other than ANV, I masked the feature on the other two devices with the Khronos profiles layer (
VK_LAYER_KHRONOS_profiles, SDK 1.3.275):VK_KHRONOS_PROFILES_SIMULATE_CAPABILITIES=SIMULATE_FEATURES_BIT,VK_KHRONOS_PROFILES_DEFAULT_FEATURE_VALUES=DEFAULT_FEATURE_VALUES_DEVICE,VK_KHRONOS_PROFILES_EMULATE_PORTABILITY=false, and a profile that sets onlyshaderStorageImageReadWithoutFormatto false.vulkaninfothen reports it false on both. On the GTX 1050 Ti it is the only feature reported differently; on llvmpipe the layer also reportsglobalPriorityQueryandmutableDescriptorTypefalse. Every failure above, on the HD 630 and masked, is the error quoted at the top.Profile
With
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(layers 1.3.275),ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V: nowas not found but was requested by env var VK_INSTANCE_LAYERS; VUIDs the same onmain3fea2a937and this PR (none on the HD 630,VUID-VkDeviceCreateInfo-pNext-pNexton the other two).tools/check_skips.pyaccepts the skip (exit 0 on the JUnit files from the HD 630 and from both masked devices).Full
ctest -j4(2538 tests) with this PR, which changes only this test's source, so every other test runs the same binaries asmain:None of the failures is in this test. On the HD 630,
agc_driver_multisample_retirement(#8604),agc_driver_f64_rounding_denormal_modes,agc_driver_resident_heap_mirrorandagc_idle_publish_waitfail, each 3/3 when run alone.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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T13:27:38Z.
Review: APPROVED
Reviewed exact head
91624a508eeab3271659e4466a64ca483817d845against currentmain.The test previously gated only
fragmentShaderPixelInterlock; the partial-write merge also emits an unformatted storage-image read.VulkanDevice.cppaddsCapabilityStorageImageReadWithoutFormatto the target only when Vulkan reportsshaderStorageImageReadWithoutFormat, andGraphics.cppconfirms the recompiler requires that capability for this merge. The new check uses that same capability and returns the established skip code 77 before drawing. The existing interlock check remains intact. The separate multisample case is outside this diff and is being changed by #11557, as the PR body explains.I verified the exact branch merges cleanly with current
upstream/main, the changed test file has not changed upstream since the reported baseline3fea2a937, the exact-head overlap scan reports no open-PR overlap, and localcheck_conventions.py --base upstream/mainplusgit diff --checkpass. I could not rerun the Vulkan GPU matrix in this environment. The PR reports repeated baseline/change runs on a feature-lacking Intel GPU and two feature-capable devices, masked-capability runs on both other devices, validation-layer comparison, skip-report validation, and the full-suite results with unrelated failures identified. I am relying on those reported hardware runs for runtime coverage; this approval does not claim an independent GPU run.