Repository navigation
Shader: query dimensions of 2D array image views - #1606
Conversation
Array resource queries need the array at the descriptor index so the third component reports the view's layer count. Check the returned dimensions through a draw against the existing 12-layer texture.
dcastell1
left a comment
There was a problem hiding this comment.
Hardware run: RTX 5090 (621.24), Windows 11, this PR's tree, all six vk_*_test programs rebuilt from the same commit, LEONIDA_W64_EMULATE=1: 146/146 GPU tests pass, with the new one exact:
PASS ps_array_resinfo 4096/4096 pixels exact
That covers the 2D-array resinfo dimensions on a device whose vk_image_query path was previously untested for arrayed views, and no other test moved.
(FYI, the first run with binaries from an older commit gave 144/146 — cs_bvh and ps_ssharp failed on the program/check.py mismatch, not on this PR. Everything green once the programs match the tree; see #1579.)
|
Tested 67c8ffe on NVIDIA GeForce RTX 3090 (Ampere, subgroup 32..32), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: pass. The PR's diff applied cleanly to
|
|
Tested
Tools: llvm-mc 21.1.8 (AMDGPU), SPIRV-Tools 2026.1 for the SPIR-V checks, GCC 13.3.0, Python 3.12.3. No code was edited or pushed; only synthetic fixtures were used. AI-assisted. |
…uery-size # Conflicts: # tests/test_shader_checks.py
|
Follow-up on fa34cc0 using the Windows LLVM and Vulkan SDK tools: both array_resinfo translator tests passed. The source-built ps_array_resinfo also assembled, translated and passed spirv-val. GPU execution on this head is still pending. AI-assisted. |
Claimed in the coordination issue as image_get_resinfo for 2D array views.
What and why
Translate SQ_RSRC_IMG_2D_ARRAY resource queries through the existing array image binding. The result has width, height, layer count and mip count. Array layer count stays constant across mip levels. The GPU fixture samples the dimensions of a 12-layer view and compares all four channels at every pixel. The plain 2D resinfo fixtures in #1402 and #1419 cover a different image type.
Tested
Checklist
AI-assisted.