Repository navigation
Tests: fuzz UINT/SINT image loads - #1087
Conversation
|
Tested dd380ef on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51, llvm-mc 23.1.6):
On Intel every program skips with One idea, outside this PR: these integer formats are only read through typed |
|
Tested dd380ef on NVIDIA GeForce RTX 4070 SUPER, driver 621.01, Windows 11 Home 25H2 (26200.9974), VS 2022 Build Tools, Vulkan SDK 1.4.363.1, llvm-mc 21.1.8: pass
AI-assisted. No game files. |
quackottu
left a comment
There was a problem hiding this comment.
Tested dd380ef on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
- Build ok.
ctest: 100% tests passed, 0 tests failed out of 50 (gameinputdisabled, no SDL3). tests/test_image_fuzz.py: 37 passed (llvm-mc 21.1.8). I didn't run avk_image_fuzzseed sweep beyond what the test runs.- 44 test programs exit 0 with 0 validation messages.
- Same on
main, not from this PR:d3d12_clear_test(NVIDIA 0.5 tie rounding, #521),vk_binary_occlusion_test(needs an input file), and the 3VUID-vkCreateDevice-ppEnabledExtensionNames-01387ind3d12_fence_timing_test/d3d12_vulkan_device_test(#1027).
…ed arrays (SHADER-151) UINT/SINT image_load read the uint/sint storage arrays with OpImageRead, so every typed load declared StorageImageReadWithoutFormat (missing on Intel Xe-LP, ItsNotRexed#619), and read-only integer textures, which the runtime binds only in the sampled arrays, read the fallback or past the 256-entry storage arrays. They now fetch through uint/sint aliases of the dimension's sampled array; a lookup miss takes the float path. vk_store_test load fills the images before the dispatch, runs without shaderStorageImageReadWithoutFormat and fails a module that declares it. vk_image_fuzz no longer requires the without-format features, and binds its UINT/SINT cases (ItsNotRexed#1087) as sampled images, as the runtime binds a read-only texture, instead of storage-only images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed arrays (SHADER-151) UINT/SINT image_load read the uint/sint storage arrays with OpImageRead, so every typed load declared StorageImageReadWithoutFormat (missing on Intel Xe-LP, ItsNotRexed#619), and read-only integer textures, which the runtime binds only in the sampled arrays, read the fallback or past the 256-entry storage arrays. They now fetch through uint/sint aliases of the dimension's sampled array; a lookup miss takes the float path. vk_store_test load fills the images before the dispatch, runs without shaderStorageImageReadWithoutFormat and fails a module that declares it. vk_image_fuzz no longer requires the without-format features, and binds its UINT/SINT cases (ItsNotRexed#1087) as sampled images, as the runtime binds a read-only texture, instead of storage-only images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
image_loadfuzzer to coverR8G8B8A8_UINTandR8G8B8A8_SINTthrough the corresponding storage-image views.Claim: coordination comment. The tracker currently lists the same claim twice as FUZZ-18 and FUZZ-19.
Testing
Linux (Zorin OS 18.1), RX 7600, RADV Mesa 26.2.4, LLVM 21.1.8:
python3 -m pytest -q tests/test_image_fuzz.py: 37 passed.LLVM_MC=/usr/bin/llvm-mc-21 LEONIDA_VK_VALIDATION=1 VK_LOADER_LAYERS_DISABLE="~implicit~" python3 -I tools/image_fuzz.py --programs 90 --seed 11: 90/90 matched, no skips.--seed 7600: 90/90 matched, no skips.Synthetic inputs only; no game files. AI-assisted (OpenCode).