Skip to content

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

Merged
aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
aslan2142:carry-2169-texture-array-kind
Nov 26, 2026
Merged

aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
aslan2142:carry-2169-texture-array-kind

Conversation

@aslan2142

Copy link
Copy Markdown
Collaborator

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

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.

… (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>
@aslan2142
aslan2142 merged commit 86dc3d8 into ProjectLeonida:main Nov 26, 2026
2 of 5 checks passed
@aslan2142

Copy link
Copy Markdown
Collaborator Author

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 Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY) #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
aslan2142 deleted the carry-2169-texture-array-kind branch November 26, 2026 02:27
Kokonotcu added a commit to Kokonotcu/leonida that referenced this pull request Nov 26, 2026
12 upstream commits after ad41fd5, all taken: ProjectLeonida#2123 (D16S8 as D24S8: castable widening only for format 118,
CreatePlacedResource takes its clear value, the depth-UAV copy path in vulkan_replay.h reworked, with its
xbox_depth_storage tests), ProjectLeonida#1662 (rdna2spirv: the backward re-anchor also restores a signed-byte dot4's stored
op_sel_hi, as the forward search does), ProjectLeonida#2160 and ProjectLeonida#2177 (typed image-load and texture-array test models), ProjectLeonida#2159
(gameinput test reads the pad before expecting a scripted press to end). No conflict; every line the merge removes
from our side is one of upstream's own (checked against the merge base, D:\GTA6\analysis\lostlines.sh).

The corpus is to be translated again with this rdna2spirv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants