test(agc): skip the 4_4_4_4 partial write test without shaderStorageImageReadWithoutFormat #11943

Merged
GiannisG1 merged 1 commit from upstream-pr/11943 into main 2026-10-28 09:32:44 +00:00
GiannisG1 commented 2026-10-27 13:21:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GiannisG1 on 2026-10-27T13:21:39Z.


What

agc_driver_packed_unorm4444_partial_write fails on devices without shaderStorageImageReadWithoutFormat:

ShaderRecompiler::Recompile: SPIR-V module emission failed: storage image reads without a format are unavailable on the target device

A partial write of a 4_4_4_4 target is merged in the pixel shader: MergeColorTarget reads the target through EmitStorageImageRead, which needs StorageImageReadWithoutFormat and throws without it (SpirvDescriptors.cpp:241; Graphics.cpp:10543 expects that failure). The test checks only fragmentShaderPixelInterlock.

It now also checks TargetHasCapability(device->Target(), spv::CapabilityStorageImageReadWithoutFormat), the capability the recompiler checks, and returns 77 with skipped, the device lacks shaderStorageImageReadWithoutFormat.

agc_driver_packed_unorm4444_multisample_partial_write reads the target the same way on main, 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, on main 3fea2a937. agc_driver_packed_unorm4444_partial_write, 3 runs per device:

Device main 3fea2a937 this PR
Intel HD Graphics 630, Mesa 25.2.8 (shaderStorageImageReadWithoutFormat false) fails 3/3 skipped 3/3
NVIDIA GTX 1050 Ti, 580.178.04 passes 3/3 passes 3/3
llvmpipe, Mesa 25.2.8 passes 3/3 passes 3/3
GTX 1050 Ti, feature masked (below) fails 3/3 skipped 3/3
llvmpipe, feature masked (below) fails 3/3 skipped 3/3

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 only shaderStorageImageReadWithoutFormat to false. vulkaninfo then reports it false on both. On the GTX 1050 Ti it is the only feature reported differently; on llvmpipe the layer also reports globalPriorityQuery and mutableDescriptorType false. Every failure above, on the HD 630 and masked, is the error quoted at the top.

Profile
{
    "$schema": "https://schema.khronos.org/vulkan/profiles-0.8.2-275.json",
    "capabilities": {
        "no_formatless_reads": {
            "features": {
                "VkPhysicalDeviceFeatures": {
                    "shaderStorageImageReadWithoutFormat": false
                }
            }
        }
    },
    "profiles": {
        "VP_ANYPS5_no_formatless_reads": {
            "version": 1,
            "api-version": "1.3.204",
            "label": "Device without shaderStorageImageReadWithoutFormat",
            "description": "The physical device as it is, with shaderStorageImageReadWithoutFormat reported as false",
            "capabilities": ["no_formatless_reads"]
        }
    }
}

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 3fea2a937 and this PR (none on the HD 630, VUID-VkDeviceCreateInfo-pNext-pNext on the other two). tools/check_skips.py accepts 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 as main:

  • GTX 1050 Ti: 0 failed, 40 skipped.
  • llvmpipe: 0 failed, 91 skipped.
  • HD 630: 4 failed, 52 skipped.

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_mirror and agc_idle_publish_wait fail, each 3/3 when run alone.

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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5034611734 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11943). Originally posted by [GiannisG1](https://github.com/GiannisG1) on 2026-10-27T13:21:39Z. --- ### What `agc_driver_packed_unorm4444_partial_write` fails on devices without `shaderStorageImageReadWithoutFormat`: ``` ShaderRecompiler::Recompile: SPIR-V module emission failed: storage image reads without a format are unavailable on the target device ``` A partial write of a 4_4_4_4 target is merged in the pixel shader: `MergeColorTarget` reads the target through `EmitStorageImageRead`, which needs `StorageImageReadWithoutFormat` and throws without it (`SpirvDescriptors.cpp:241`; `Graphics.cpp:10543` expects that failure). The test checks only `fragmentShaderPixelInterlock`. It now also checks `TargetHasCapability(device->Target(), spv::CapabilityStorageImageReadWithoutFormat)`, the capability the recompiler checks, and returns 77 with `skipped, the device lacks shaderStorageImageReadWithoutFormat`. `agc_driver_packed_unorm4444_multisample_partial_write` reads the target the same way on `main`, 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`, on `main` `3fea2a937`. `agc_driver_packed_unorm4444_partial_write`, 3 runs per device: | Device | `main` `3fea2a937` | this PR | |---|---|---| | Intel HD Graphics 630, Mesa 25.2.8 (`shaderStorageImageReadWithoutFormat` false) | fails 3/3 | skipped 3/3 | | NVIDIA GTX 1050 Ti, 580.178.04 | passes 3/3 | passes 3/3 | | llvmpipe, Mesa 25.2.8 | passes 3/3 | passes 3/3 | | GTX 1050 Ti, feature masked (below) | fails 3/3 | skipped 3/3 | | llvmpipe, feature masked (below) | fails 3/3 | skipped 3/3 | 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 only `shaderStorageImageReadWithoutFormat` to false. `vulkaninfo` then reports it false on both. On the GTX 1050 Ti it is the only feature reported differently; on llvmpipe the layer also reports `globalPriorityQuery` and `mutableDescriptorType` false. Every failure above, on the HD 630 and masked, is the error quoted at the top. <details><summary>Profile</summary> ```json { "$schema": "https://schema.khronos.org/vulkan/profiles-0.8.2-275.json", "capabilities": { "no_formatless_reads": { "features": { "VkPhysicalDeviceFeatures": { "shaderStorageImageReadWithoutFormat": false } } } }, "profiles": { "VP_ANYPS5_no_formatless_reads": { "version": 1, "api-version": "1.3.204", "label": "Device without shaderStorageImageReadWithoutFormat", "description": "The physical device as it is, with shaderStorageImageReadWithoutFormat reported as false", "capabilities": ["no_formatless_reads"] } } } ``` </details> 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` `3fea2a937` and this PR (none on the HD 630, `VUID-VkDeviceCreateInfo-pNext-pNext` on the other two). `tools/check_skips.py` accepts 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 as `main`: - GTX 1050 Ti: 0 failed, 40 skipped. - llvmpipe: 0 failed, 91 skipped. - HD 630: 4 failed, 52 skipped. 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_mirror` and `agc_idle_publish_wait` fail, each 3/3 when run alone. ### 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 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-27 13:27:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T13:27:38Z.

Review: APPROVED


Reviewed exact head 91624a508eeab3271659e4466a64ca483817d845 against current main.

The test previously gated only fragmentShaderPixelInterlock; the partial-write merge also emits an unformatted storage-image read. VulkanDevice.cpp adds CapabilityStorageImageReadWithoutFormat to the target only when Vulkan reports shaderStorageImageReadWithoutFormat, and Graphics.cpp confirms 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 baseline 3fea2a937, the exact-head overlap scan reports no open-PR overlap, and local check_conventions.py --base upstream/main plus git diff --check pass. 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5667787913 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11943#pullrequestreview-5667787913). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T13:27:38Z. **Review:** APPROVED --- Reviewed exact head `91624a508eeab3271659e4466a64ca483817d845` against current `main`. The test previously gated only `fragmentShaderPixelInterlock`; the partial-write merge also emits an unformatted storage-image read. `VulkanDevice.cpp` adds `CapabilityStorageImageReadWithoutFormat` to the target only when Vulkan reports `shaderStorageImageReadWithoutFormat`, and `Graphics.cpp` confirms 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 baseline `3fea2a937`, the exact-head overlap scan reports no open-PR overlap, and local `check_conventions.py --base upstream/main` plus `git diff --check` pass. 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.
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!11943
No description provided.