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

Merged
triggered02 merged 3 commits from upstream-pr/931 into main 2026-11-23 18:31:12 +00:00
triggered02 commented 2026-11-23 17:43:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T17:43:39Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6565278198 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/931). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T17:43:39Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:45:28 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-23T17:43:53Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109094635 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109094635). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-23T17:43:53Z. --- <!-- 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>
R0Y00 commented 2026-11-24 06:49:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:08:59Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109726903 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109726903). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:08:59Z. --- 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 commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:15:17Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109890643 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109890643). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:15:17Z. --- 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.
triggered02 commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T18:18:14Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109960771 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/931#issuecomment-7109960771). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T18:18:14Z. --- 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.
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!924
No description provided.