shader: check the paired LDS read address snapshot on the host #2356
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2356
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2356/head"
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?
@RavenCurseBurg on GitHub · 2026-11-25 13:33 UTC · original
RavenCurseBurg:tests/lds-read2-host-snapshot→main· +3 −0 · 1 files · 1 commits · merged 2026-11-25 13:37 UTCThe 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.
@tedin7 on GitHub · 2026-11-25 13:37 UTC · original · reviewed
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.