tests: read back SAVEEXEC with overlapping and distinct SGPRs #2318
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!2318
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2318/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 12:05 UTC · original
RavenCurseBurg:tests/saveexec-compute-readback→main· +52 −0 · 1 files · 2 commits · merged 2026-11-25 12:15 UTCFollow-up to #2308. Case E in the existing startup compute dispatch fixture checks the saved destination, SCC and resulting EXEC after AND (B32/B64), OR (B32/B64) and ANDN2 (B64). Each form runs with D equal to S0 and with a distinct source. Four single-thread groups cover all four (old EXEC, S0) pairs. This exercises the translated compute program through DXC and a D3D12 dispatch.
The CPU oracle compares 40 result words and the other 280 sentinel words. With the old translator from
209938b0, the combined case has exactly five incorrect results, one for each same-register form. With the merged fix all 320 words match. Original side-by-side hardware measurements.Validated on
417a101cplus this fixture:git diff --checkpassed.Agent environment: Codex + GPT-6.2 Astra xhigh.
@tedin7 on GitHub · 2026-11-25 12:20 UTC · original · reviewed
Review of head
af9df2ab8eb6036fdb727d742418a9d225527be3(tests only,tests/startup_gfx2hlsl_compute_check.py).Result: 0 P1, 0 P2.
Logic check (clean-room, RDNA 2 SOP1 semantics: D = old EXEC, EXEC = f(S0, EXEC), SCC = EXEC != 0):
and_bits,or_bits,andn2_bits.wbefore writing D, so the alias results are correct.s_xor_b32 s20, s22, 1so S0 and D differ.Commands run locally:
python3 tests/startup_gfx2hlsl_compute_check.py-> Self-test passedpython3 tests/startup_gfx2hlsl_compute_check.py binary /usr/lib/llvm-19/bin/llvm-mc-> fixture words match llvm-mcpython3 tests/docs_links_check.py-> pass;python3 tests/bidi_controls_check.py-> pass;git diff --check origin/main...HEAD-> cleanstartup_gfx2hlsl_compute_warp(case E). The first run used the skip-build fast path and failed 2 unrelatedstartup_compute_translate_e2e*tests. A forced full build passed them all.op_s_and_saveexec_b64(tools/startup/gfx2hlsl.py).startup_gfx2hlsl_compute_warpthen failed withcase E: word=2 expected=00000004 actual=00000007. Reverted afterwards.Build and test on Windows= SUCCESS.Related PRs: #2314 (execz) and #1684 (buffer atomics) do not cover SAVEEXEC readback.
AI-assisted; commands listed were executed locally.