tests: guard the compute done rule of pending_keys for slot 67 requests #2229
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!2229
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2229/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?
@NiiRoZz on GitHub · 2026-11-25 06:28 UTC · original
NiiRoZz:compute/pending-cso-guard→main· +14 −1 · 1 files · 1 commits · merged 2026-11-25 06:32 UTCChange
Follow-up to #2223: the re-review there left one test gap open. In
gfx2hlsl.pending_keys, a slot 67 compute request counts as done when its manifest and a non-empty<key>.cs.csoexist, but no check consulted that stage rule: the existing "done" assertion runs withX2W_FXC=""(manifest-only), where the stage list is not read, so changing the stage tuple from('.cs.cso',)to('.vs.cso',)survived.This adds the missing assertions to
tests/startup_compute_translate_check.py, withX2W_FXCunset. A compute request stays pending with:.vs.cso/.ps.cso;.cs.cso.It becomes done with a manifest plus a non-empty
.cs.cso.Test only; no translator or runtime change. Refs #1412.
Verification
Commit
f15bf807on main1d6381dc. Windows 11 build 26300.3 of 3 passed, no skips; the pure-Python check passes on its own (it needs no Windows or D3D12 and is already in the Linux list).
Evidence and follow-up
Mutations, each run and then reverted:
('.cs.cso',)→('.vs.cso',): the check fails with "graphics bytecode made a compute request done";(): the check fails with "a manifest alone made the request done".Follow-up: the runtime slot 67 slice described on #1412 (real PSO, dispatch through the shim, fenced UAV read-back) is in preparation; it needs the slot 14 handler and compute root state of #1974, #1803 and #1975.
Checklist
AI-assisted (Claude Code); the commands above were run locally.
🤖 Generated with Claude Code
With compilation on, pending_keys keeps a compute request pending with a manifest alone, with graphics .vs.cso/.ps.cso, or with an empty .cs.cso, and treats it as done with a manifest and a non-empty .cs.cso. Changing the compute stage tuple to ('.vs.cso',) or () now fails the check. Co-Authored-By: Claude Fable 5.2 <[email protected]>@tedin7 on GitHub · 2026-11-25 06:32 UTC · original · reviewed
Review of head
f15bf80792(tests-only, one Python file).Result: 0 P1, 0 P2.
Logic check: the new assertions match
pending_keysin tools/startup/gfx2hlsl.py. Ac67request needs<key>.txtplus a non-empty<key>.cs.cso. Graphics.vs.cso/.ps.csofiles do not count, and an empty.cs.csodoes not count. Each case is asserted separately.Commands executed locally:
python3 tests/startup_compute_translate_check.py-> PASSpython3 tests/docs_links_check.py-> PASS (414 links)python3 tests/bidi_controls_check.py-> PASSgit diff --check origin/main...HEAD-> clean('.vs.cso', '.ps.cso')-> test FAILS ("graphics bytecode made a compute request done")True-> test FAILS ("a manifest alone made the request done")Only a .py file is touched, so the pure-Python path applies.
AI-assisted; commands listed were executed locally.