shader: lower export target null in gfx2hlsl (Part of #1723) #2019

Merged
tedin7 merged 5 commits from upstream-pr/2026 into main 2026-11-25 23:22:09 +00:00
tedin7 commented 2026-11-24 23:26:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T23:26:58Z.


Part of #1723

What this unblocks: Run 20 census #11 (45 pairs).

exp null, off, off, off, off done vm (a pixel shader that only discards) was refused as export target null, and a shader whose only export is null was classified other. The null target now writes nothing and keeps the vm discard; the classifier treats it as a pixel shader.

Verification:

  • python3 -B tests/startup_gfx2hlsl_export_null_check.py on the branch: all ok, exit 0.
  • Same command with the tools/startup/gfx2hlsl.py change reverted: exit 1 (export target null, classified other).
  • Registered as startup_gfx2hlsl_export_null in CMakeLists.txt.
  • Not run: Win2025 draw commands (the check is pure Python).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6593493029 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T23:26:58Z. --- Part of #1723 What this unblocks: Run 20 census #11 (45 pairs). `exp null, off, off, off, off done vm` (a pixel shader that only discards) was refused as `export target null`, and a shader whose only export is null was classified `other`. The null target now writes nothing and keeps the `vm` discard; the classifier treats it as a pixel shader. Verification: - `python3 -B tests/startup_gfx2hlsl_export_null_check.py` on the branch: `all ok`, exit 0. - Same command with the `tools/startup/gfx2hlsl.py` change reverted: exit 1 (`export target null`, classified `other`). - Registered as `startup_gfx2hlsl_export_null` in CMakeLists.txt. - Not run: Win2025 draw commands (the check is pure Python). AI-assisted; commands listed were executed locally.
chatgpt-codex-connector[bot commented 2026-11-25 00:05:00 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:31:40Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d0bae666d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049093246 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#pullrequestreview-6049093246). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T23:31:40Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `7d0bae666d` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
tedin7 commented 2026-11-25 01:01:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:53:32Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049880106 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#pullrequestreview-6049880106). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T00:53:32Z. **Review:** COMMENTED --- _No description provided._
chatgpt-codex-connector[bot commented 2026-11-25 01:01:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:27:09Z.


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-24T23:31:43.393365Z 7d0bae6 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:7147415673 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#issuecomment-7147415673). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T23:27:09Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"7d0bae666dcadf250e48fbede39635c51d25908b","has_any_findings":true,"has_unresolved_findings":true,"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-24T23:31:43.393365Z">2026-11-24T23:31:43.393365Z</relative-time> | `7d0bae6` | 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>
chatgpt-codex-connector[bot commented 2026-11-25 01:02:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:31:41Z.

Code review location: tools/startup/gfx2hlsl.py; line 1582

@@ -1578,6 +1578,8 @@ def export(self, asm):
         target, vals, flags = m.group(1), [v.strip() for v in m.group(2).split(',')], m.group(3).split()
         if 'vm' in flags and not self.exec_known:
             self.emit('if (!(exec & 1)) discard;')
+        if target == 'null':
+            return None  # the null target writes no render target; its only effect is the vm discard above

P2 Badge Reject unparsed modifiers before accepting null exports

For compressed null encodings with a non-pair EN mask, the decoder appends an en: token (tools/disasm_rdna2.py:2664–2667); for example, 0xf8001c91 produces an export ending in done compr vm en:0x1. The regex above absorbs that entire suffix into the last operand, leaving flags empty, and this new return accepts the instruction while silently dropping vm. A pure-Python translation of s_mov_b64 exec, 0 followed by that export generates a pixel shader without discard, so a depth-enabled draw can retain killed pixels instead of rejecting the unmodelled encoding as before. Reject unparsed export modifiers or preserve the VM bit before returning.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687998801 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#discussion_r4687998801). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T23:31:41Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 1582 ~~~~diff @@ -1578,6 +1578,8 @@ def export(self, asm): target, vals, flags = m.group(1), [v.strip() for v in m.group(2).split(',')], m.group(3).split() if 'vm' in flags and not self.exec_known: self.emit('if (!(exec & 1)) discard;') + if target == 'null': + return None # the null target writes no render target; its only effect is the vm discard above ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Reject unparsed modifiers before accepting null exports** For compressed null encodings with a non-pair EN mask, the decoder appends an `en:` token (`tools/disasm_rdna2.py:2664–2667`); for example, `0xf8001c91` produces an export ending in `done compr vm en:0x1`. The regex above absorbs that entire suffix into the last operand, leaving `flags` empty, and this new return accepts the instruction while silently dropping `vm`. A pure-Python translation of `s_mov_b64 exec, 0` followed by that export generates a pixel shader without `discard`, so a depth-enabled draw can retain killed pixels instead of rejecting the unmodelled encoding as before. Reject unparsed export modifiers or preserve the VM bit before returning. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
tedin7 commented 2026-11-25 01:02:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:53:32Z.

Code review location: tools/startup/gfx2hlsl.py; line 1582

@@ -1578,6 +1578,8 @@ def export(self, asm):
         target, vals, flags = m.group(1), [v.strip() for v in m.group(2).split(',')], m.group(3).split()
         if 'vm' in flags and not self.exec_known:
             self.emit('if (!(exec & 1)) discard;')
+        if target == 'null':
+            return None  # the null target writes no render target; its only effect is the vm discard above

Checked: export() already rejects any en: flag before the null path (the lazy regex splits done compr vm en:0x1 into flags correctly), so 0xf8001c91 raises Unsupported and vm is never dropped. Pinned with a regression test in 68b09062 (rebased on main, push pending from host). Command run: python3 -I tests/startup_gfx2hlsl_export_null_check.py -> all ok.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688702471 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#discussion_r4688702471). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T00:53:32Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 1582 ~~~~diff @@ -1578,6 +1578,8 @@ def export(self, asm): target, vals, flags = m.group(1), [v.strip() for v in m.group(2).split(',')], m.group(3).split() if 'vm' in flags and not self.exec_known: self.emit('if (!(exec & 1)) discard;') + if target == 'null': + return None # the null target writes no render target; its only effect is the vm discard above ~~~~ --- Checked: `export()` already rejects any `en:` flag before the null path (the lazy regex splits `done compr vm en:0x1` into flags correctly), so `0xf8001c91` raises Unsupported and `vm` is never dropped. Pinned with a regression test in 68b09062 (rebased on main, push pending from host). Command run: `python3 -I tests/startup_gfx2hlsl_export_null_check.py` -> all ok. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 11:02:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:30Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6056366487 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#pullrequestreview-6056366487). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:30Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 11:02:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:30Z.

Code review location: tools/startup/gfx2hlsl.py; line 1582

@@ -1578,6 +1578,8 @@ def export(self, asm):
         target, vals, flags = m.group(1), [v.strip() for v in m.group(2).split(',')], m.group(3).split()
         if 'vm' in flags and not self.exec_known:
             self.emit('if (!(exec & 1)) discard;')
+        if target == 'null':
+            return None  # the null target writes no render target; its only effect is the vm discard above

Re-checked on current head 68b09062: export() rejects any en: flag before the null path, with a test in tests/startup_gfx2hlsl_export_null_check.py (68b09062). Resolving. AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4693918370 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#discussion_r4693918370). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:01:30Z. **Code review location:** `tools/startup/gfx2hlsl.py`; line 1582 ~~~~diff @@ -1578,6 +1578,8 @@ def export(self, asm): target, vals, flags = m.group(1), [v.strip() for v in m.group(2).split(',')], m.group(3).split() if 'vm' in flags and not self.exec_known: self.emit('if (!(exec & 1)) discard;') + if target == 'null': + return None # the null target writes no render target; its only effect is the vm discard above ~~~~ --- Re-checked on current head 68b09062: `export()` rejects any `en:` flag before the null path, with a test in tests/startup_gfx2hlsl_export_null_check.py (68b09062). Resolving. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 14:04:27 +00:00
tedin7 commented 2026-11-25 14:05:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T13:51:38Z.


Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is.

We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7164395372 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#issuecomment-7164395372). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T13:51:38Z. --- Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is. We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here. AI-assisted; commands listed were executed locally.
upstream-sync reopened this pull request 2026-11-25 23:01:39 +00:00
lambirou commented 2026-11-25 23:02:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T22:17:32Z.


@tedin7 I found this closed PR after starting a separate exp null implementation. Your semantics are the right ones: the null target writes no channel but vm still discards. I am not opening a competing PR.

I added a draw fixture on top of your branch:

  • Branch: startup/export-null-draw on my fork
  • Commit: github.com/lambirou/Xbox2Windows@7ee0b6d7 (7ee0b6d7, parent 68b0906)
  • Files: tests/startup_gfx2hlsl_export_null_draw_check.py, CMakeLists.txt, docs/experiments.md
  • No change to tools/startup/gfx2hlsl.py; this keeps your vm discard exactly.

The draw compiles a colour export followed by exp null, off, off, off, off done with DXC ps_6_0, draws 4x4 pixels through offscreen_check --startup-pixel-words, and compares all 64 words with the four constants. The negative control writes mrt0 = 0 from the null site and must produce pixel mismatch.

python -B tests/startup_gfx2hlsl_export_null_check.py
all ok

python -B tests/startup_gfx2hlsl_export_null_draw_check.py draw <dxc> <offscreen_check> warp
backend=warp ... adapter=Microsoft Basic Render Driver ...
null export draw: 16 pixels match; the writing-null control differs

python -B tests/startup_gfx2hlsl_export_null_draw_check.py draw <dxc> <offscreen_check> hardware
backend=hardware ... adapter=AMD Radeon RX 9060 XT driver=32.0.32029.2010 ...
null export draw: 16 pixels match; the writing-null control differs

CMakeLists.txt registers startup_gfx2hlsl_export_null_draw_{warp,hardware} with SKIP_RETURN_CODE 77; the hardware case ran here on the RX 9060 XT, debug layer unavailable. tests/docs_links_check.py and tests/bidi_controls_check.py pass, and git diff --check is clean.

Please take this commit when you reopen the PR, or tell me to fold it into your branch after the rebase. It adds only the draw coverage and documentation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176178715 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#issuecomment-7176178715). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T22:17:32Z. --- @tedin7 I found this closed PR after starting a separate `exp null` implementation. Your semantics are the right ones: the null target writes no channel but `vm` still discards. I am not opening a competing PR. I added a draw fixture on top of your branch: - Branch: `startup/export-null-draw` on my fork - Commit: https://github.com/lambirou/Xbox2Windows/commit/7ee0b6d7 (`7ee0b6d7`, parent `68b0906`) - Files: `tests/startup_gfx2hlsl_export_null_draw_check.py`, `CMakeLists.txt`, `docs/experiments.md` - No change to `tools/startup/gfx2hlsl.py`; this keeps your `vm` discard exactly. The draw compiles a colour export followed by `exp null, off, off, off, off done` with DXC `ps_6_0`, draws 4x4 pixels through `offscreen_check --startup-pixel-words`, and compares all 64 words with the four constants. The negative control writes `mrt0 = 0` from the null site and must produce `pixel mismatch`. ```text python -B tests/startup_gfx2hlsl_export_null_check.py all ok python -B tests/startup_gfx2hlsl_export_null_draw_check.py draw <dxc> <offscreen_check> warp backend=warp ... adapter=Microsoft Basic Render Driver ... null export draw: 16 pixels match; the writing-null control differs python -B tests/startup_gfx2hlsl_export_null_draw_check.py draw <dxc> <offscreen_check> hardware backend=hardware ... adapter=AMD Radeon RX 9060 XT driver=32.0.32029.2010 ... null export draw: 16 pixels match; the writing-null control differs ``` `CMakeLists.txt` registers `startup_gfx2hlsl_export_null_draw_{warp,hardware}` with `SKIP_RETURN_CODE 77`; the hardware case ran here on the RX 9060 XT, debug layer unavailable. `tests/docs_links_check.py` and `tests/bidi_controls_check.py` pass, and `git diff --check` is clean. Please take this commit when you reopen the PR, or tell me to fold it into your branch after the rebase. It adds only the draw coverage and documentation.
upstream-sync closed this pull request 2026-11-26 00:00:38 +00:00
tedin7 commented 2026-11-26 01:02:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T00:11:39Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 7f1ece4107ef754df649b15c110e0604a1a07fee:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2): 1.48s (configure 1.98s)
    • Test (ctest --preset dev -R 'startup_gfx2hlsl_export_null' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (0.54s: startup_gfx2hlsl_export_null 0.09s, startup_gfx2hlsl_export_null_draw_warp 0.33s, startup_gfx2hlsl_export_null_draw_hardware 0.34s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2): 1.06s (configure 2.03s)
    • Test (ctest --preset release -R 'startup_gfx2hlsl_export_null' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (0.50s: startup_gfx2hlsl_export_null 0.09s, startup_gfx2hlsl_export_null_draw_warp 0.30s, startup_gfx2hlsl_export_null_draw_hardware 0.29s)
  • Windows Python checks: tests/mesh_heap_sampler_check.py ok (0.7s), tests/startup_buffer_address_check.py ok (0.5s), tests/startup_buffer_format_word3_table_check.py ok (0.1s), tests/startup_compute_request_offline_check.py ok (0.5s), tests/startup_compute_translate_check.py ok (0.2s), tests/startup_flat_param_check.py ok (0.2s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_ci_check.py ok (0.2s), tests/startup_gfx2hlsl_bit_alu_check.py ok (0.7s), tests/startup_gfx2hlsl_capture_check.py ok (1.0s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.3s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.4s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_pk_int16_check.py ok (0.2s), tests/startup_gfx2hlsl_f32_lg_check.py ok (1.1s), tests/startup_gfx2hlsl_f32_nan_check.py ok (4.4s), tests/startup_gfx2hlsl_fma_mix_check.py ok (0.1s), tests/startup_gfx2hlsl_getpc_refusal_check.py ok (0.1s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.1s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.1s), tests/startup_gfx2hlsl_interp_p2_hi_check.py ok (0.2s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.2s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.1s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.3s), tests/startup_gfx2hlsl_pack_absdiff_check.py ok (2.2s), tests/startup_gfx2hlsl_readfirstlane_recompute_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_uniform_check.py ok (0.1s), tests/startup_gfx2hlsl_refusals_check.py ok (0.5s), tests/startup_gfx2hlsl_root_check.py ok (0.7s), tests/startup_gfx2hlsl_sad_check.py ok (0.3s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_arity_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_table_arity_check.py ok (0.2s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.2s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.2s), tests/startup_gfx2hlsl_shift64_check.py ok (0.2s), tests/startup_gfx2hlsl_sload_const_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_smem_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (5.5s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (0.8s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.1s), tests/startup_gfx2hlsl_swap_check.py ok (0.2s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (4.0s), tests/startup_gfx2hlsl_waitcnt_depctr_check.py ok (0.1s), tests/startup_gfx2hlsl_watch_check.py ok (2.5s), tests/startup_image_2d_array_check.py ok (0.2s), tests/startup_image_3d_check.py ok (0.1s), tests/startup_image_gather_lz_check.py ok (0.5s), tests/startup_image_load_d16_check.py ok (0.9s), tests/startup_image_sample_a16_check.py ok (0.2s), tests/startup_image_sample_b_check.py ok (0.2s), tests/startup_image_sample_c_check.py ok (0.2s), tests/startup_image_sample_l_check.py ok (0.2s), tests/startup_image_sample_lod_check.py ok (0.5s), tests/startup_inline_sampler_check.py ok (0.1s), tests/startup_mesh57_skeleton_check.py ok (0.4s), tests/startup_run_ps1_check.py ok (8.6s), tests/startup_run_sh_check.py skipped (0.1s), tests/startup_sampler_heap_check.py ok (0.1s), tests/startup_shader_cache_rekey_check.py ok (1.6s), tests/startup_smem_address_check.py ok (0.1s), tests/startup_stream_fetch_check.py ok (0.2s), tests/startup_stream_interface_check.py ok (0.2s), tests/startup_translator_check.py ok (0.4s)
  • sccache: 8/17 hits; wall 62.9s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178497509 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#issuecomment-7178497509). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T00:11:39Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `7f1ece4107ef754df649b15c110e0604a1a07fee`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2`): `1.48s` (configure `1.98s`) - Test (`ctest --preset dev -R 'startup_gfx2hlsl_export_null' --parallel 2 --no-tests=error --output-on-failure`): **3/3 passed** (`0.54s`: `startup_gfx2hlsl_export_null` `0.09s`, `startup_gfx2hlsl_export_null_draw_warp` `0.33s`, `startup_gfx2hlsl_export_null_draw_hardware` `0.34s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2`): `1.06s` (configure `2.03s`) - Test (`ctest --preset release -R 'startup_gfx2hlsl_export_null' --parallel 2 --no-tests=error --output-on-failure`): **3/3 passed** (`0.50s`: `startup_gfx2hlsl_export_null` `0.09s`, `startup_gfx2hlsl_export_null_draw_warp` `0.30s`, `startup_gfx2hlsl_export_null_draw_hardware` `0.29s`) - **Windows Python checks**: `tests/mesh_heap_sampler_check.py` ok (`0.7s`), `tests/startup_buffer_address_check.py` ok (`0.5s`), `tests/startup_buffer_format_word3_table_check.py` ok (`0.1s`), `tests/startup_compute_request_offline_check.py` ok (`0.5s`), `tests/startup_compute_translate_check.py` ok (`0.2s`), `tests/startup_flat_param_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_ci_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`1.0s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_pk_int16_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`4.4s`), `tests/startup_gfx2hlsl_fma_mix_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_getpc_refusal_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_interp_p2_hi_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_pack_absdiff_check.py` ok (`2.2s`), `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_refusals_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_root_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_sad_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_arity_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_table_arity_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sload_const_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_smem_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`5.5s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`0.8s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`4.0s`), `tests/startup_gfx2hlsl_waitcnt_depctr_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`2.5s`), `tests/startup_image_2d_array_check.py` ok (`0.2s`), `tests/startup_image_3d_check.py` ok (`0.1s`), `tests/startup_image_gather_lz_check.py` ok (`0.5s`), `tests/startup_image_load_d16_check.py` ok (`0.9s`), `tests/startup_image_sample_a16_check.py` ok (`0.2s`), `tests/startup_image_sample_b_check.py` ok (`0.2s`), `tests/startup_image_sample_c_check.py` ok (`0.2s`), `tests/startup_image_sample_l_check.py` ok (`0.2s`), `tests/startup_image_sample_lod_check.py` ok (`0.5s`), `tests/startup_inline_sampler_check.py` ok (`0.1s`), `tests/startup_mesh57_skeleton_check.py` ok (`0.4s`), `tests/startup_run_ps1_check.py` ok (`8.6s`), `tests/startup_run_sh_check.py` skipped (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.1s`), `tests/startup_shader_cache_rekey_check.py` ok (`1.6s`), `tests/startup_smem_address_check.py` ok (`0.1s`), `tests/startup_stream_fetch_check.py` ok (`0.2s`), `tests/startup_stream_interface_check.py` ok (`0.2s`), `tests/startup_translator_check.py` ok (`0.4s`) - `sccache`: 8/17 hits; wall `62.9s` AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 01:02:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T00:11:40Z.


@MasterDomino #2026 is ready for review and merge.

What changed:

  • Merged current main into the branch (clean merge, no conflicts).
  • Added a real D3D12 WARP draw test for exp null after mrt0, read back and compared with the expected pixels, plus a negative control. The fixture comes from @lambirou's commit 7ee0b6d7, kept with their authorship.
  • Docs: added the offscreen_check build line and removed hardware claims we did not run.

Head: 7f1ece41. CI is green. Win2025 dev and release both passed on this head (receipt in the comment above).

Open point from pre-review: a pixel shader with only a null export has no draw test yet.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178497758 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2026#issuecomment-7178497758). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T00:11:40Z. --- @MasterDomino #2026 is ready for review and merge. What changed: - Merged current `main` into the branch (clean merge, no conflicts). - Added a real D3D12 WARP draw test for `exp null` after `mrt0`, read back and compared with the expected pixels, plus a negative control. The fixture comes from @lambirou's commit `7ee0b6d7`, kept with their authorship. - Docs: added the `offscreen_check` build line and removed hardware claims we did not run. Head: `7f1ece41`. CI is green. Win2025 dev and release both passed on this head (receipt in the comment above). Open point from pre-review: a pixel shader with only a null export has no draw test yet. AI-assisted; commands listed were executed locally.
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!2019
No description provided.