cpp-migration: add --watch mode to compile_dxil for live startup shader requests #2988

Closed
opened 2026-11-27 03:28:46 +00:00 by github-bot · 1 comment
Owner

@⁠stan495 on GitHub · 2026-11-27 03:25 UTC · original

Target branch cpp-migration. Refs #2935 (Tooling bullet: --watch equivalent for compile_dxil).

Scope

  1. Add compile_dxil --watch SDK_DIRECTORY CACHE_DIRECTORY REQUEST_DIRECTORY [--jobs N] [--interval MS] [--once] that initializes DXC once and translates pending startup graphics (req_<key>.a) and slot-67 compute (req_<key>.c67) requests as they appear in REQUEST_DIRECTORY.
  2. Align pending/resume/retry semantics with tools/startup/gfx2hlsl.py --watch (pending_keys):
    • Skip completed entries (.txt + complete DXBC .cso stages, respecting .psin/.psdep dependencies).
    • Resume entries missing bytecode or with truncated/corrupt DXBC containers, and recheck when .psin is updated or removed.
    • Retry pre-existing .fail entries once on the first pass; skip unchanged .fail entries on subsequent passes unless the marker or .psin is rewritten; delete stale .fail on success.
  3. Add source-built fixture tests/native_compile_dxil_watch_check.py covering --once, continuous --watch, resume/recheck/retry controls, and invalid CLI negative controls.

I am taking this slice.

**@⁠stan495** on GitHub · 2026-11-27 03:25 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2988) Target branch `cpp-migration`. Refs #2935 (Tooling bullet: `--watch` equivalent for `compile_dxil`). ### Scope 1. Add `compile_dxil --watch SDK_DIRECTORY CACHE_DIRECTORY REQUEST_DIRECTORY [--jobs N] [--interval MS] [--once]` that initializes DXC once and translates pending startup graphics (`req_<key>.a`) and slot-67 compute (`req_<key>.c67`) requests as they appear in `REQUEST_DIRECTORY`. 2. Align pending/resume/retry semantics with `tools/startup/gfx2hlsl.py --watch` (`pending_keys`): - Skip completed entries (`.txt` + complete DXBC `.cso` stages, respecting `.psin`/`.psdep` dependencies). - Resume entries missing bytecode or with truncated/corrupt DXBC containers, and recheck when `.psin` is updated or removed. - Retry pre-existing `.fail` entries once on the first pass; skip unchanged `.fail` entries on subsequent passes unless the marker or `.psin` is rewritten; delete stale `.fail` on success. 3. Add source-built fixture `tests/native_compile_dxil_watch_check.py` covering `--once`, continuous `--watch`, resume/recheck/retry controls, and invalid CLI negative controls. I am taking this slice.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:28:46 +00:00
Author
Owner

@⁠MasterDomino on GitHub · 2026-11-27 03:47 UTC · original

Completed by #2992, merged into cpp-migration as 79a8db6c. Merges into a non-default branch do not close issues automatically.

**@⁠MasterDomino** on GitHub · 2026-11-27 03:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2988#issuecomment-7209274969) Completed by #2992, merged into `cpp-migration` as 79a8db6c. Merges into a non-default branch do not close issues automatically.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#2988
No description provided.