tests: guard the compute done rule of pending_keys for slot 67 requests #2221
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2229"
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 NiiRoZz on 2026-11-25T06:28:47Z.
Change
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
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T06:32:19Z.
Review: COMMENTED
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.