agc_driver_packed_float_blend and agc_driver_texture_sparse_levels fail instead of skipping on devices without shaderStorageImageReadWithoutFormat or shaderResourceMinLod #16968

Closed
opened 2026-11-08 02:27:56 +00:00 by jeej1k · 0 comments
jeej1k commented 2026-11-08 02:27:56 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jeej1k on 2026-11-08T02:27:56Z.


What happens

On Intel UHD Graphics 770, which reports shaderStorageImageReadWithoutFormat = false and shaderResourceMinLod = false, two AGC tests stop in the shader recompiler instead of skipping: agc_driver_packed_float_blend with storage image reads without a format are unavailable on the target device, and agc_driver_texture_sparse_levels with opcode=ImageSampleRaw reason=clamps its LOD, which needs the device's shaderResourceMinLod.

Title, test or build step

agc_driver_packed_float_blend, agc_driver_texture_sparse_levels

AnyPS5 commit

main c2ea254d0d, nothing merged on top

System

Windows 11 Pro 25H2 (10.0.26200), Intel UHD Graphics 770 (8086:a780, driver 101.7088, Vulkan 1.4.323), WinLibs GCC 15.2.0 r7 UCRT, Release

Steps to reproduce

ANYPS5_GPU=Intel ctest --test-dir build -R '^(agc_driver_packed_float_blend|agc_driver_texture_sparse_levels)$' --output-on-failure

Each stops within half a second.

Log

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

sparse texture levels: a 2048x2048 BC1 image with 8 levels reports color: block 128x64, flags 0x0, mip tail from level 3, 65536 bytes at 0x2a0000, stride 0x300000; sparse block 65536 bytes
ShaderRecompiler::Recompile: SPIR-V emission failed: hash=0x7ff748ca5f00 stage=4 opcode=ImageSampleRaw reason=clamps its LOD, which needs the device's shaderResourceMinLod

What was checked

Both fail 5 of 5 runs. vulkaninfo for this device: shaderStorageImageReadWithoutFormat = false, shaderResourceMinLod = false. The RTX 4070 in the same PC (driver 621.14) passes both.

This looks like the same pattern as #16927 (64-bit GDS atomics without shaderBufferInt64Atomics, fixed by #16934) and the earlier MinLod skips (#7058): the recompiler correctly refuses, but the tests do not check the device capability first. Whether these tests should skip or the recompiler should gain a fallback is for you to decide. #12522 mentions the same missing feature for agc_driver_packed_unorm4444_multisample_partial_write and open PR #11557.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6266728726 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/16968). Originally posted by [jeej1k](https://github.com/jeej1k) on 2026-11-08T02:27:56Z. --- ### What happens On Intel UHD Graphics 770, which reports `shaderStorageImageReadWithoutFormat = false` and `shaderResourceMinLod = false`, two AGC tests stop in the shader recompiler instead of skipping: `agc_driver_packed_float_blend` with `storage image reads without a format are unavailable on the target device`, and `agc_driver_texture_sparse_levels` with `opcode=ImageSampleRaw reason=clamps its LOD, which needs the device's shaderResourceMinLod`. ### Title, test or build step agc_driver_packed_float_blend, agc_driver_texture_sparse_levels ### AnyPS5 commit main c2ea254d0d, nothing merged on top ### System Windows 11 Pro 25H2 (10.0.26200), Intel UHD Graphics 770 (8086:a780, driver 101.7088, Vulkan 1.4.323), WinLibs GCC 15.2.0 r7 UCRT, Release ### Steps to reproduce ``` ANYPS5_GPU=Intel ctest --test-dir build -R '^(agc_driver_packed_float_blend|agc_driver_texture_sparse_levels)$' --output-on-failure ``` Each stops within half a second. ### Log ```text shader 0x7ff6125e1200 stage 5: ShaderRecompiler::Recompile: SPIR-V module emission failed: storage image reads without a format are unavailable on the target device sparse texture levels: a 2048x2048 BC1 image with 8 levels reports color: block 128x64, flags 0x0, mip tail from level 3, 65536 bytes at 0x2a0000, stride 0x300000; sparse block 65536 bytes ShaderRecompiler::Recompile: SPIR-V emission failed: hash=0x7ff748ca5f00 stage=4 opcode=ImageSampleRaw reason=clamps its LOD, which needs the device's shaderResourceMinLod ``` ### What was checked Both fail 5 of 5 runs. vulkaninfo for this device: `shaderStorageImageReadWithoutFormat = false`, `shaderResourceMinLod = false`. The RTX 4070 in the same PC (driver 621.14) passes both. This looks like the same pattern as #16927 (64-bit GDS atomics without `shaderBufferInt64Atomics`, fixed by #16934) and the earlier MinLod skips (#7058): the recompiler correctly refuses, but the tests do not check the device capability first. Whether these tests should skip or the recompiler should gain a fallback is for you to decide. #12522 mentions the same missing feature for `agc_driver_packed_unorm4444_multisample_partial_write` and open PR #11557. AI-assisted: yes.
Sign in to join this conversation.
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#16968
No description provided.