mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #2169] [CLOSED] 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) #2171
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2171
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2169
Author: @Tauwni
Created: 11/26/2026
Status: ❌ Closed
Base:
main← Head:fix/texture-test-array-kind📝 Commits (1)
6246f5avk_texture_test: tag index 1 as bound in both sampled arrays it fills (2D and 2D array)📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
runtime/test/vk_texture_test.cpp(+4 -1)📄 Description
Claimed in the coordination issue as: TEST-TEXTURE-ARRAY-KIND (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7179684580)
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 (#1774) and the canonical-NaN pair on KosmicKrisp (#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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.