test(agc): skip the unclamped normalized blend test without shaderStorageImageReadWithoutFormat #12968

Merged
GiannisG1 merged 2 commits from upstream-pr/12968 into main 2026-10-30 14:21:42 +00:00
GiannisG1 commented 2026-10-29 17:48:48 +00:00 (Migrated from github.com)

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 has fragmentShaderPixelInterlock but not shaderStorageImageReadWithoutFormat, such as an Intel HD Graphics 630 on Mesa's ANV:

shader 0x… stage 5: ShaderRecompiler::Recompile: SPIR-V module emission failed: storage image reads without a format are unavailable on the target device

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 shaderStorageImageReadWithoutFormat the test prints skipped, the device lacks shaderStorageImageReadWithoutFormat and 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.md now 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 within check_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, on main bb04a4f1ea. The PR changes only this test's source, so every other test binary is the same as main's.

agc_driver_unclamped_normalized_blend:

Device main bb04a4f1ea this PR, 3 runs
Intel HD Graphics 630, Mesa 25.2.8 (shaderStorageImageReadWithoutFormat false) fails 3 of 3 alone, and in the full run skipped 3/3; check_skips.py exit 0 on each run's JUnit file
NVIDIA GTX 1050 Ti, 580.178.04 passes passes 3/3: 14 UNORM and 4 SNORM draws, 2 overdraws, 1 refusal
llvmpipe, Mesa 25.2.8 passes passes 3/3: 14 UNORM and 4 SNORM draws, 2 overdraws, 1 refusal
GTX 1050 Ti and llvmpipe with shaderStorageImageReadWithoutFormat masked (Khronos profiles layer, SDK 1.3.275) fails with the same emission error skipped, check_skips.py exit 0

With VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layers 1.3.275), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, ctest -V: no was not found but was requested by env var VK_INSTANCE_LAYERS; VUIDs the same on main and this PR (none on the HD 630, VUID-VkDeviceCreateInfo-pNext-pNext on the other two).

Also tested by @JulesB40 on Windows 11 with WinLibs GCC 15.2.0 r7, on main bb04a4f1ea, with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_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 on main with storage image reads without a format are unavailable on the target device and skips with this change. The RTX 4070 Laptop (0x2860, driver 616.92) passes 3 of 3 with the full run, with no VUID- lines under VK_LAYER_KHRONOS_validation.

The 206 source-scanning tests (conventions_*, public_headers*, check_compile*, check_main_sync, check_skips) pass, and check_conventions.py, check_test_registration.py and check_main_sync.py are 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

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Intel HD Graphics 630 (Mesa 25.2.8 ANV), NVIDIA GeForce GTX 1050 Ti (580.178.04), llvmpipe (Mesa 25.2.8); Linux Mint 22.3, kernel 7.0.0-38; and by @JulesB40 on Windows 11 26200: Intel UHD Graphics (Raptor Lake-S Mobile, 8086:a788), driver 101.7085; NVIDIA GeForce RTX 4070 Laptop GPU (10de:2860), driver 616.92
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5072917668 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12968). Originally posted by [GiannisG1](https://github.com/GiannisG1) on 2026-10-29T17:48:48Z. --- ### What `agc_driver_unclamped_normalized_blend` (#11684) fails on a device that has `fragmentShaderPixelInterlock` but not `shaderStorageImageReadWithoutFormat`, such as an Intel HD Graphics 630 on Mesa's ANV: ``` shader 0x… stage 5: ShaderRecompiler::Recompile: SPIR-V module emission failed: storage image reads without a format are unavailable on the target device ``` 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 `shaderStorageImageReadWithoutFormat` the test prints `skipped, the device lacks shaderStorageImageReadWithoutFormat` and 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.md` now 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 within `check_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`, on `main` `bb04a4f1ea`. The PR changes only this test's source, so every other test binary is the same as `main`'s. `agc_driver_unclamped_normalized_blend`: | Device | `main` `bb04a4f1ea` | this PR, 3 runs | |---|---|---| | Intel HD Graphics 630, Mesa 25.2.8 (`shaderStorageImageReadWithoutFormat` false) | fails 3 of 3 alone, and in the full run | skipped 3/3; `check_skips.py` exit 0 on each run's JUnit file | | NVIDIA GTX 1050 Ti, 580.178.04 | passes | passes 3/3: 14 UNORM and 4 SNORM draws, 2 overdraws, 1 refusal | | llvmpipe, Mesa 25.2.8 | passes | passes 3/3: 14 UNORM and 4 SNORM draws, 2 overdraws, 1 refusal | | GTX 1050 Ti and llvmpipe with `shaderStorageImageReadWithoutFormat` masked (Khronos profiles layer, SDK 1.3.275) | fails with the same emission error | skipped, `check_skips.py` exit 0 | With `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (layers 1.3.275), `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, `ctest -V`: no `was not found but was requested by env var VK_INSTANCE_LAYERS`; VUIDs the same on `main` and this PR (none on the HD 630, `VUID-VkDeviceCreateInfo-pNext-pNext` on the other two). Also tested by @JulesB40 on Windows 11 with WinLibs GCC 15.2.0 r7, on `main` `bb04a4f1ea`, with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_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 on `main` with `storage image reads without a format are unavailable on the target device` and skips with this change. The RTX 4070 Laptop (`0x2860`, driver 616.92) passes 3 of 3 with the full run, with no `VUID-` lines under `VK_LAYER_KHRONOS_validation`. The 206 source-scanning tests (`conventions_*`, `public_headers*`, `check_compile*`, `check_main_sync`, `check_skips`) pass, and `check_conventions.py`, `check_test_registration.py` and `check_main_sync.py` are 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 - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: Intel HD Graphics 630 (Mesa 25.2.8 ANV), NVIDIA GeForce GTX 1050 Ti (580.178.04), llvmpipe (Mesa 25.2.8); Linux Mint 22.3, kernel 7.0.0-38; and by @JulesB40 on Windows 11 26200: Intel UHD Graphics (Raptor Lake-S Mobile, 8086:a788), driver 101.7085; NVIDIA GeForce RTX 4070 Laptop GPU (10de:2860), driver 616.92 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12968
No description provided.