test(agc): skip the unclamped normalized blend test without shaderStorageImageReadWithoutFormat #12968
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12968"
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-29T17:48:48Z.
What
agc_driver_unclamped_normalized_blend(#11684) fails on a device that hasfragmentShaderPixelInterlockbut notshaderStorageImageReadWithoutFormat, such as an Intel HD Graphics 630 on Mesa's ANV:The pixel shader merge behind the unclamped blend reads the color target through a storage image without a format (
EmitStorageImageRead,SpirvDescriptors.cpp:241), so every draw of the test needs that feature, and the recompiler refuses the shader on such a device. The test only checks for pixel interlock.This PR adds the same check the 4_4_4_4 partial write test uses for the same merge path (#11943): without
shaderStorageImageReadWithoutFormatthe test printsskipped, the device lacks shaderStorageImageReadWithoutFormatand returns 77, right after the interlock check. Nothing else changes; on such a device the refusal case without pixel interlock is skipped with the rest.At @oneandonlydean's request, the "Unclamped normalized color targets" entry in
docs/dev/debt/libSceAgcDriver.mdnow lists shaderStorageImageReadWithoutFormat next to fragmentShaderPixelInterlock and says the shader is refused without either. Its sentence on unblended targets ("Without blending Vulkan's conversion clamps the stored value.") is dropped so the entry stays withincheck_conventions.py's 1000-character limit (debt-length); it is exactly 1000 now.Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release,
BUILD_TESTING=ON, onmainbb04a4f1ea. The PR changes only this test's source, so every other test binary is the same asmain's.agc_driver_unclamped_normalized_blend:mainbb04a4f1eashaderStorageImageReadWithoutFormatfalse)check_skips.pyexit 0 on each run's JUnit fileshaderStorageImageReadWithoutFormatmasked (Khronos profiles layer, SDK 1.3.275)check_skips.pyexit 0With
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 onmainand this PR (none on the HD 630,VUID-VkDeviceCreateInfo-pNext-pNexton the other two).Also tested by @JulesB40 on Windows 11 with WinLibs GCC 15.2.0 r7, on
mainbb04a4f1ea, withANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1(from #12973, closed as a duplicate of this one). The Intel UHD (Raptor Lake,8086:a788, driver 101.7085) fails 3 of 3 onmainwithstorage image reads without a format are unavailable on the target deviceand skips with this change. The RTX 4070 Laptop (0x2860, driver 616.92) passes 3 of 3 with the full run, with noVUID-lines underVK_LAYER_KHRONOS_validation.The 206 source-scanning tests (
conventions_*,public_headers*,check_compile*,check_main_sync,check_skips) pass, andcheck_conventions.py,check_test_registration.pyandcheck_main_sync.pyare clean.tools/pr_overlap.py --branch: #12916 also changes the test file and merges with it, and since the debt commit it also edits the same entry line (L280): it replaces "a second merged target in one draw", this PR the requirements before it and the unblended sentence, so whichever lands second resolves one line.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