pixel_aot: support partial uncompressed export masks on the ordinary path #931

Manually merged
github merged 3 commits from gh-pr/931/head into gh-pr/931/base 2026-11-26 22:29:16 +00:00
Owner

@⁠triggered02 on GitHub · 2026-11-23 17:43 UTC · original
triggered02:shader/exp-mask-ordinary → main · +120 −19 · 6 files · 3 commits · merged 2026-11-23 18:31 UTC

Implements the remaining ordinary/integer slice of #361: partial uncompressed RT0 export masks.

  • ools/pixel_aot.py: partial uncompressed exports use the existing
    eturn_write_mask opt-in for floating-point and integer targets. Disabled integer channels pad with u. The pixel_aot.py CLI passes the opt-in and reports the mask as
    t0_write_mask in its JSON summary so the caller can set the PSO. Full-mask behavior is unchanged.
  • Tests: adds a CLI round-trip test for a partial uncompressed export, plus an integer draw fixture. The integer destination channels are seeded differently, each enabled channel uses a different source word, all four channels are read back through an R32G32B32A32_UINT target, and the wrong-PSO-mask and wrong-enabled-word controls are separate cases. The existing float fixture is unchanged.
  • ools/scan_unsupported_shaders.py and docs/experiments.md are updated.

Non-pair compressed masks remain rejected; that separate evidence requirement stays out of this PR.

Validation on Windows 11 Pro 26200, GTX 1660 SUPER (driver 32.0.16.1074), MSVC 19.52, DXC 1.9.2602.17:

  • dev and
    elease: 14/14 selected pixel_aot_* tests pass, including pixel_aot_uncompressed_integer_export_{warp,hardware} and the existing uncompressed float draws.
  • ests/docs_links_check.py, ests/bidi_controls_check.py, ests/shader_census_check.py and ests/shader_probe_check.py pass.
  • The new check_cli_partial_export runs in the LLVM 15 binary job. This machine has no LLVM installation, so I exercised the same CLI path locally with a mocked disassembler; CI is the authoritative run.

AI-assisted.

**@⁠triggered02** on GitHub · 2026-11-23 17:43 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/931) `triggered02:shader/exp-mask-ordinary` → `main` · +120 −19 · 6 files · 3 commits · merged 2026-11-23 18:31 UTC Implements the remaining ordinary/integer slice of #361: partial uncompressed RT0 export masks. - ools/pixel_aot.py: partial uncompressed exports use the existing eturn_write_mask opt-in for floating-point and integer targets. Disabled integer channels pad with u. The pixel_aot.py CLI passes the opt-in and reports the mask as t0_write_mask in its JSON summary so the caller can set the PSO. Full-mask behavior is unchanged. - Tests: adds a CLI round-trip test for a partial uncompressed export, plus an integer draw fixture. The integer destination channels are seeded differently, each enabled channel uses a different source word, all four channels are read back through an R32G32B32A32_UINT target, and the wrong-PSO-mask and wrong-enabled-word controls are separate cases. The existing float fixture is unchanged. - ools/scan_unsupported_shaders.py and docs/experiments.md are updated. Non-pair compressed masks remain rejected; that separate evidence requirement stays out of this PR. Validation on Windows 11 Pro 26200, GTX 1660 SUPER (driver 32.0.16.1074), MSVC 19.52, DXC 1.9.2602.17: - dev and elease: 14/14 selected pixel_aot_* tests pass, including pixel_aot_uncompressed_integer_export_{warp,hardware} and the existing uncompressed float draws. - ests/docs_links_check.py, ests/bidi_controls_check.py, ests/shader_census_check.py and ests/shader_probe_check.py pass. - The new check_cli_partial_export runs in the LLVM 15 binary job. This machine has no LLVM installation, so I exercised the same CLI path locally with a mocked disassembler; CI is the authoritative run. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:29:14 +00:00
github manually merged commit c0287fb50c into gh-pr/931/base 2026-11-26 22:29:16 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-23 17:43 UTC · original · edited 2026-11-23 17:47 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:47:18.316215Z 756bc6f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-23 17:43 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109094635) · edited 2026-11-23 17:47 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"756bc6fb7f349d1c841fb07f41e1244b4b4bace2","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-23T17:47:18.316215Z">2026-11-23T17:47:18.316215Z</relative-time> | `756bc6f` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 18:08 UTC · original

I reviewed the refreshed head. The Python API already requires callers to opt in and apply the mask. The CLI still opts in on every call, so older callers can now receive a partial shader and unknowingly write disabled channels with a full PSO mask. It also changes the old compressed RG output shape. Please preserve the default CLI behavior and add an explicit --rt0-write-mask for uncompressed exports. I tested that local adjustment with LLVM 15, including refusal without the flag and refusal of compressed exports through the new option. The eight focused WARP and RTX draws also pass. I held the push when the branch advanced.

**@⁠R0Y00** on GitHub · 2026-11-23 18:08 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109726903) I reviewed the refreshed head. The Python API already requires callers to opt in and apply the mask. The CLI still opts in on every call, so older callers can now receive a partial shader and unknowingly write disabled channels with a full PSO mask. It also changes the old compressed RG output shape. Please preserve the default CLI behavior and add an explicit --rt0-write-mask for uncompressed exports. I tested that local adjustment with LLVM 15, including refusal without the flag and refusal of compressed exports through the new option. The eight focused WARP and RTX draws also pass. I held the push when the branch advanced.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 18:15 UTC · original

I applied the tested CLI opt-in to the refreshed head. The default CLI keeps its existing behavior. The LLVM 15 controls verify partial uncompressed output with the flag and refuse it without the flag, and the flag refuses compressed exports. The integer draw and both mutation controls passed on WARP and RTX 4060 Laptop on this candidate.

**@⁠R0Y00** on GitHub · 2026-11-23 18:15 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109890643) I applied the tested CLI opt-in to the refreshed head. The default CLI keeps its existing behavior. The LLVM 15 controls verify partial uncompressed output with the flag and refuse it without the flag, and the flag refuses compressed exports. The integer draw and both mutation controls passed on WARP and RTX 4060 Laptop on this candidate.
Author
Owner

@⁠triggered02 on GitHub · 2026-11-23 18:18 UTC · original

Synced the latest --rt0-write-mask change on this branch. Local in-process CLI checks confirm: a partial uncompressed export is refused without the flag, succeeds with it and reports
t0_write_mask, a compressed export is refused with the flag, and a full uncompressed export without the flag omits the field. docs_links_check.py, idi_controls_check.py and git diff --check pass; the LLVM binary job is rerunning.

AI-assisted.

**@⁠triggered02** on GitHub · 2026-11-23 18:18 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109960771) Synced the latest --rt0-write-mask change on this branch. Local in-process CLI checks confirm: a partial uncompressed export is refused without the flag, succeeds with it and reports t0_write_mask, a compressed export is refused with the flag, and a full uncompressed export without the flag omits the field. docs_links_check.py, idi_controls_check.py and git diff --check pass; the LLVM binary job is rerunning. AI-assisted.
This discussion has been locked. Commenting is limited to contributors.
No description provided.