vk_texture_test: tag index 1 as bound in both sampled arrays it fills (TEST-TEXTURE-ARRAY-KIND, carries #2169) #2177

Manually merged
github merged 1 commit from gh-pr/2177/head into gh-pr/2177/base 2026-11-26 10:21:22 +00:00
Owner

@⁠aslan2142 on GitHub · 2026-11-26 02:25 UTC · original
aslan2142:carry-2169-texture-array-kind → main · +4 −1 · 1 files · 1 commits · merged 2026-11-26 02:26 UTC

Claimed in the coordination issue as: TEST-TEXTURE-ARRAY-KIND (Tauwni's claim; this PR carries #2169)

What and why

Tauwni's fix from #2169, carried here unchanged; the commit keeps Tauwni as its author. #2169 is a draft only because its author is at the open-PR limit, and a draft can't be merged.

Since #2098, a tagged module reads its instruction's array only when the descriptor entry's kind names it. vk_texture_test tagged index 1 with one sampled kind, so the 2D-array and cube operations of ps_array_resinfo and ps_get_lod_array got the 1x1 fallback and failed on every driver. Index 1 now carries both sampled kinds.

Tested

  • Tauwni's run (#2169): run_gpu_tests.py --filter ps_ on an Apple M3 with MoltenVK 1.4.2, KosmicKrisp and llvmpipe (Mesa 26.3.1): ps_array_resinfo and ps_get_lod_array pass on all three; ctest 106/106.
  • Ours: under Wine on the gfx1036 iGPU (RADV), vk_texture_cube_alpha passes with this on main.

GPUs tested: Apple M3 (MoltenVK 1.4.2, KosmicKrisp), llvmpipe (Mesa 26.3.1); AMD gfx1036 iGPU (RADV) under Wine

AI-assisted: yes (Claude Code, Claude Opus 5.5)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
**@⁠aslan2142** on GitHub · 2026-11-26 02:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2177) `aslan2142:carry-2169-texture-array-kind` → `main` · +4 −1 · 1 files · 1 commits · merged 2026-11-26 02:26 UTC Claimed in the coordination issue as: TEST-TEXTURE-ARRAY-KIND (Tauwni's claim; this PR carries #2169) ### What and why Tauwni's fix from #2169, carried here unchanged; the commit keeps Tauwni as its author. #2169 is a draft only because its author is at the open-PR limit, and a draft can't be merged. Since #2098, a tagged module reads its instruction's array only when the descriptor entry's kind names it. `vk_texture_test` tagged index 1 with one sampled kind, so the 2D-array and cube operations of `ps_array_resinfo` and `ps_get_lod_array` got the 1x1 fallback and failed on every driver. Index 1 now carries both sampled kinds. ### Tested - **Tauwni's run (#2169):** `run_gpu_tests.py --filter ps_` on an Apple M3 with MoltenVK 1.4.2, KosmicKrisp and llvmpipe (Mesa 26.3.1): `ps_array_resinfo` and `ps_get_lod_array` pass on all three; ctest 106/106. - **Ours:** under Wine on the gfx1036 iGPU (RADV), `vk_texture_cube_alpha` passes with this on `main`. GPUs tested: Apple M3 (MoltenVK 1.4.2, KosmicKrisp), llvmpipe (Mesa 26.3.1); AMD gfx1036 iGPU (RADV) under Wine AI-assisted: yes (Claude Code, Claude Opus 5.5) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption.
Since #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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:21:20 +00:00
github manually merged commit 50afd24e94 into gh-pr/2177/base 2026-11-26 10:21:22 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-26 02:27 UTC · original

Merged. This is Tauwni's fix from #2169, carried unchanged (the commit keeps Tauwni as its author), since #2169 is a draft only because of the open-PR limit.

  • What it fixes: since #2098 a tagged module reads its instruction's array only when the entry's kind names it, so index 1 now carries both sampled kinds and ps_array_resinfo and ps_get_lod_array read the cube views again instead of the 1x1 fallback.
  • Tested: Tauwni's run_gpu_tests.py --filter ps_ on an Apple M3 (MoltenVK, KosmicKrisp, llvmpipe) passes both cases, and ctest 106/106; vk_texture_cube_alpha passes under Wine on the gfx1036 iGPU (RADV) with this on main.
  • Checked on main 3abb99cad + 50afd24e9: it merges cleanly; the semantic suite passes (496 files, 6,336 tests, 0 files failed); the 15 docs and writer tests pass; check_no_game_data.py is clean on the 1 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-26 02:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2177#issuecomment-7180814929) Merged. This is Tauwni's fix from #2169, carried unchanged (the commit keeps Tauwni as its author), since #2169 is a draft only because of the open-PR limit. - **What it fixes:** since #2098 a tagged module reads its instruction's array only when the entry's kind names it, so index 1 now carries both sampled kinds and `ps_array_resinfo` and `ps_get_lod_array` read the cube views again instead of the 1x1 fallback. - **Tested:** Tauwni's `run_gpu_tests.py --filter ps_` on an Apple M3 (MoltenVK, KosmicKrisp, llvmpipe) passes both cases, and ctest 106/106; `vk_texture_cube_alpha` passes under Wine on the gfx1036 iGPU (RADV) with this on `main`. - **Checked on `main` `3abb99cad` + `50afd24e9`:** it merges cleanly; the semantic suite passes (496 files, 6,336 tests, 0 files failed); the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 1 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.