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

Closed
opened 2026-11-27 03:25:35 +00:00 by stan495 · 1 comment
stan495 commented 2026-11-27 03:25:35 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T03:25:35Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6639310500 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2988). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T03:25:35Z. --- 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.
MasterDomino commented 2026-11-27 03:47:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T03:47:32Z.


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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209274969 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2988#issuecomment-7209274969). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-27T03:47:32Z. --- Completed by #2992, merged into `cpp-migration` as 79a8db6c. Merges into a non-default branch do not close issues automatically.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#2988
No description provided.