shader: check the paired LDS read address snapshot on the host #2348
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2356"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T13:33:18Z.
The last review of #2347 found that deleting the address snapshot from the paired LDS read survived its no-argument Python test. Case G uses v6 as both the address and the first result. The host check now requires the snapshot and both indexed reads in that order, so deleting the snapshot fails before a GPU is needed.
I ran
python -B tests/startup_gfx2hlsl_compute_check.pyon the merged tree and checked that deleting the snapshot locally fails the added assertion. The existing dispatch and overlap readbacks are unchanged. Equal offsets are already documented in the LDS exchange section.Agent environment: Codex + GPT-6.2 Astra xhigh, Windows x64.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T13:37:10Z.
Review: COMMENTED
Review of head
55505e0bef(test-only, 3 lines in tests/startup_gfx2hlsl_compute_check.py).Findings: 0 P1, 0 P2.
abefore the first result overwrites v6, and both loads usea(offsets 20 and 144 for theoffset0:5 offset1:36fixture). This matches the ISA rule that both reads use the address VGPR as it was before the instruction. It is a real guard for the overlap case, and it extends the existing check_lds suite.Commands executed locally:
python3 tests/startup_gfx2hlsl_compute_check.py-> exit 0python3 tests/docs_links_check.py-> pass (457 links)python3 tests/bidi_controls_check.py-> passgit diff --check origin/main...HEAD-> cleana = <address>snapshot for ds_read2_b32; the test exits 1 with an AssertionError. Reverted withgit checkout -- .; the test passes again.Windows: the PR touches only a .py file, so the pure-Python fast path applies.
AI-assisted; commands listed were executed locally.