Repository navigation
vk_texture_test: tag index 1 as bound in both sampled arrays it fills; ps_array_resinfo and ps_get_lod_array pass again (TEST-TEXTURE-ARRAY-KIND) - #2169
Closed
Tauwni wants to merge 1 commit into
Conversation
… (2D and 2D array) Since ProjectLeonida#2098 a tagged module reads its instruction's array only when the table entry's kind names it. The harness binds index 1 in images[1] (binding 0) and in the 2D-array images[1] (binding 3), but tagged it 2D only (2D array in cube mode), so ps_array_resinfo and ps_get_lod_array read the 1x1 fallback on every driver. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 4 tasks
Collaborator
|
Thanks @Tauwni, this is the last of the three fixes for what #2098 broke on
AI-assisted (Claude Code, Claude Opus 5.5). |
3 tasks done
aslan2142
added a commit
that referenced
this pull request
Nov 26, 2026
vk_texture_test: tag index 1 as bound in both sampled arrays it fills (TEST-TEXTURE-ARRAY-KIND, carries #2169)
Collaborator
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: TEST-TEXTURE-ARRAY-KIND (#1608 (comment))
What and why
Since #2098 (
9f98dcc61),ps_array_resinfoandps_get_lod_arrayfail onmainon every driver I have:git bisectbetween21d3662ad(both pass) andf1afede5elands on9f98dcc61. With--descriptor-table tagged, now the default, a module reads its instruction's array only when the table entry's kind names it, and otherwise reads that array's fallback (a 1x1 image).vk_texture_testbinds index 1 in two sampled arrays:images[1]at binding 0 (the 2D view) and the 2D-arrayimages[1]at binding 3 (the view of the two cubes). But #2098 tagged its entry with one bit only:kind_sampled_bit(0), orkind_sampled_bit(1)incubemode. So thedim:SQ_RSRC_IMG_2D_ARRAYreads of these two fixtures got the fallback.The fix tags the entry with both bits, which is what the harness actually binds. This is a one-line change in
runtime/test/vk_texture_test.cpp, plus a comment. The translator and runtime are unchanged.Tested
Apple M3, macOS 26.5.1,
mainf1afede5eplus this commit, test programs rebuilt:run_gpu_tests.py --filter ps_, on MoltenVK 1.4.2, KosmicKrisp and llvmpipe (Mesa 26.3.1):ps_array_resinfo,ps_get_lod_arrayandps_cube_samplepass on all three. There is no new failure. The ones left areps_ssharpon MoltenVK (rdna2spirv: --explicit-lod-bias applies the S# LOD bias where MoltenVK drops the sampler's; ps_ssharp passes on Macs (SHADER-EXPLICIT-LOD-BIAS-MVK) #1774) and the canonical-NaN pair on KosmicKrisp (check.py, run_gpu_tests.py: exact-word pixel tests accept KosmicKrisp's canonical NaN (TEST-KOSMICKRISP-CANONICAL-NAN) #2110).GPUs tested: Apple M3 (10-core GPU), MoltenVK 1.4.2 and KosmicKrisp (Mesa 26.3.1), macOS 26.5.1 (25F80); llvmpipe (Mesa 26.3.1)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code