shader: export signed compute DXIL by input digest #1035

Merged
R0Y00 merged 1 commit from upstream-pr/1042 into main 2026-11-23 22:59:54 +00:00
R0Y00 commented 2026-11-23 22:38:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:38:24Z.


Refs #874.

Adds an optional --catalogue-dir to the existing signed PE scan. It exports each validated desktop compute DXIL container with an embedded root signature under the SHA-256 of its input bytes. The signed artefact is written atomically. The existing report and --output-dir behavior are preserved when the option is absent.

  • python -B tests/dxil_retarget_check.py passed on Windows. The controls check the file contents and digest, and verify that unsigned, rootless, gate-rejected and module-validation-failed containers produce no export.
  • Ran dxil_retarget.py --pe fixture.dll --sign --probe root_probe.exe --catalogue-dir catalogue --report report.json on a synthetic PE embedding the source-built compute_root.cso with Xbox metadata injected. The mapped entry passed both validation checks, was signed and exported once under the expected digest. A second copy in the unmapped overlay was ignored.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6570277946 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1042). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:38:24Z. --- Refs #874. Adds an optional `--catalogue-dir` to the existing signed PE scan. It exports each validated desktop compute DXIL container with an embedded root signature under the SHA-256 of its input bytes. The signed artefact is written atomically. The existing report and `--output-dir` behavior are preserved when the option is absent. - `python -B tests/dxil_retarget_check.py` passed on Windows. The controls check the file contents and digest, and verify that unsigned, rootless, gate-rejected and module-validation-failed containers produce no export. - Ran `dxil_retarget.py --pe fixture.dll --sign --probe root_probe.exe --catalogue-dir catalogue --report report.json` on a synthetic PE embedding the source-built `compute_root.cso` with Xbox metadata injected. The mapped entry passed both validation checks, was signed and exported once under the expected digest. A second copy in the unmapped overlay was ignored.
upstream-sync closed this pull request 2026-11-24 06:45:59 +00:00
Sign in to join this conversation.
No reviewers
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!1035
No description provided.