cpp-migration: support .rtv variant requests in compile_dxil --watch and --refusals #3001

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

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


Target branch cpp-migration. Refs #2935 (Tooling: --watch and --refusals support for req_<key>.rtv variants added in #2989).

Scope

  1. compile_dxil --refusals:
    • Scan req_<key>.rtv alongside req_<key>.a (deduplicating same-key .a+.rtv in favor of .rtv).
    • Run read-only prepare_direct_graphics(..., /*write_cache=*/false, input.rtv_formats) and validate format_graphics_runtime_manifest(pair, input.rtv_request) for RTV variants without invoking DXC or writing files.
  2. compile_dxil --watch:
    • Scan req_<key>.rtv alongside .a/.c67 (with same-key .rtv precedence).
    • Resolve the base request's .psin path for .rtv variants (matching gfx2hlsl.py::request_source) so base .psin updates/removals trigger rechecks and .psdep / rtv1 manifest lines publish consistently.
  3. Tests & docs:
    • Extend tests/native_compile_dxil_refusals_check.py and tests/native_compile_dxil_watch_check.py with .rtv positive and negative controls, and update docs/experiments/native-compile-dxil-{refusals,watch}.md.

I am taking this slice.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6639674762 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3001). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T03:59:41Z. --- Target branch `cpp-migration`. Refs #2935 (Tooling: `--watch` and `--refusals` support for `req_<key>.rtv` variants added in #2989). ### Scope 1. **`compile_dxil --refusals`**: - Scan `req_<key>.rtv` alongside `req_<key>.a` (deduplicating same-key `.a`+`.rtv` in favor of `.rtv`). - Run read-only `prepare_direct_graphics(..., /*write_cache=*/false, input.rtv_formats)` and validate `format_graphics_runtime_manifest(pair, input.rtv_request)` for RTV variants without invoking DXC or writing files. 2. **`compile_dxil --watch`**: - Scan `req_<key>.rtv` alongside `.a`/`.c67` (with same-key `.rtv` precedence). - Resolve the base request's `.psin` path for `.rtv` variants (matching `gfx2hlsl.py::request_source`) so base `.psin` updates/removals trigger rechecks and `.psdep` / `rtv1` manifest lines publish consistently. 3. **Tests & docs**: - Extend `tests/native_compile_dxil_refusals_check.py` and `tests/native_compile_dxil_watch_check.py` with `.rtv` positive and negative controls, and update `docs/experiments/native-compile-dxil-{refusals,watch}.md`. I am taking this slice.
MasterDomino commented 2026-11-27 04:36:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T04:36:29Z.


Completed by #3003, merged into cpp-migration as 999e17cd. Merges into a non-default branch do not close issues automatically.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209936359 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3001#issuecomment-7209936359). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-27T04:36:29Z. --- Completed by #3003, merged into `cpp-migration` as 999e17cd. 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#3001
No description provided.