shader: lower wide unsigned CMPX in mesh SAVEEXEC (Part of #3703) #3922

Merged
timbot103 merged 1 commit from upstream-pr/3922 into main 2026-12-03 12:47:15 +00:00
timbot103 commented 2026-12-03 10:38:56 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:38:56Z.


Part of #3703

X1 unsigned mesh CMPX

The census lists 178 first refusals at v_cmpx_lt_u32. Main already accepts the plain VOPC and VOP3 encodings on the straight-line path. The new fixture reproduces unsupported mesh CMPX in a SAVEEXEC then arm for the VOP3 form in a verified child region. Private census coverage is pending.

The child region requires a reaching EXEC copy, EXECZ skip and matching restore. The wide compare joins the existing VOPC path and emits unsigned icmp ult. The guarded write uses the intersection with parent EXEC, and the join preserves inactive values. VCC is untouched. SDWA, DPP, abs, neg, clamp, omod, op_sel, a nonzero unused SRC2, unsupported wide predicates and unproven restores continue to refuse.

Verification

Base d2e6a4ed, patch 04e72ee0. Both builds passed, including the full Debug build and its C++17 shader frontend target.

  • Debug mesh suite passed 23/23. Release passed 21/23. The two known asynchronous WARP failures were guarded and empty allocation, both reporting accepted=1 refused=0; the baseline also exhibits these failures.
  • All three Release WARP allocation cases passed with X2W_SYNC_MESH_REQUESTS=1. All five RTX 5080 mesh cases passed in both configurations.
  • PR preset passed 1/1, covering 5 source-built DXIL cases and 8 refusal controls. No test skipped. The bidi, documentation link and diff checks passed.

Windows 11 10.0.26200.9974, MSVC 19.44.35230, Windows SDK 10.0.26100, DXC 1.9.2602.17. WARP 10.0.26100.9818 and NVIDIA GeForce RTX 5080 with driver 32.0.16.2140. The D3D12 debug layer was unavailable.

cmake --build out/build/dev -- -j 6
cmake --build out/build/release --target compile_dxil offscreen_check d3d12_xs_shim startup_indirect_draw_indexed -- -j 6
ctest --preset dev --no-tests=error -j 1 -R 'native_direct_mesh|native_direct_container|native_mesh_'
ctest --preset release --no-tests=error -j 1 -R 'native_direct_mesh|native_direct_container|native_mesh_'
ctest --preset pr --no-tests=error -j 1 -R '^native_mesh_cmpx_lt_u32_ir$'
$env:X2W_SYNC_MESH_REQUESTS = '1'
ctest --preset release --no-tests=error -j 1 -R '^native_mesh_((guarded|empty)_allocation|missing_position)_warp$'
python tests/bidi_controls_check.py
python tests/docs_links_check.py
git diff --check origin/main...HEAD

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5624799400 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3922). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T10:38:56Z. --- Part of #3703 ## X1 unsigned mesh CMPX The census lists 178 first refusals at `v_cmpx_lt_u32`. Main already accepts the plain VOPC and VOP3 encodings on the straight-line path. The new fixture reproduces `unsupported mesh CMPX in a SAVEEXEC then arm` for the VOP3 form in a verified child region. Private census coverage is pending. The child region requires a reaching EXEC copy, EXECZ skip and matching restore. The wide compare joins the existing VOPC path and emits unsigned `icmp ult`. The guarded write uses the intersection with parent EXEC, and the join preserves inactive values. VCC is untouched. SDWA, DPP, abs, neg, clamp, omod, op_sel, a nonzero unused SRC2, unsupported wide predicates and unproven restores continue to refuse. ## Verification Base `d2e6a4ed`, patch `04e72ee0`. Both builds passed, including the full Debug build and its C++17 shader frontend target. - Debug mesh suite passed 23/23. Release passed 21/23. The two known asynchronous WARP failures were guarded and empty allocation, both reporting `accepted=1 refused=0`; the baseline also exhibits these failures. - All three Release WARP allocation cases passed with `X2W_SYNC_MESH_REQUESTS=1`. All five RTX 5080 mesh cases passed in both configurations. - PR preset passed 1/1, covering 5 source-built DXIL cases and 8 refusal controls. No test skipped. The bidi, documentation link and diff checks passed. Windows 11 10.0.26200.9974, MSVC 19.44.35230, Windows SDK 10.0.26100, DXC 1.9.2602.17. WARP 10.0.26100.9818 and NVIDIA GeForce RTX 5080 with driver 32.0.16.2140. The D3D12 debug layer was unavailable. ```powershell cmake --build out/build/dev -- -j 6 cmake --build out/build/release --target compile_dxil offscreen_check d3d12_xs_shim startup_indirect_draw_indexed -- -j 6 ctest --preset dev --no-tests=error -j 1 -R 'native_direct_mesh|native_direct_container|native_mesh_' ctest --preset release --no-tests=error -j 1 -R 'native_direct_mesh|native_direct_container|native_mesh_' ctest --preset pr --no-tests=error -j 1 -R '^native_mesh_cmpx_lt_u32_ir$' $env:X2W_SYNC_MESH_REQUESTS = '1' ctest --preset release --no-tests=error -j 1 -R '^native_mesh_((guarded|empty)_allocation|missing_position)_warp$' python tests/bidi_controls_check.py python tests/docs_links_check.py git diff --check origin/main...HEAD ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
timbot103 commented 2026-12-03 12:23:49 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T12:23:49Z.


Marked Ready for review now that #3917–#3921 have merged, keeping within 5 non-draft PRs per #3514. The branch merges cleanly with current main, and CI is green at this head. It was also built and tested together with the other open wave branches (#3917–#3926).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7378154646 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3922#issuecomment-7378154646). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T12:23:49Z. --- Marked Ready for review now that #3917–#3921 have merged, keeping within 5 non-draft PRs per #3514. The branch merges cleanly with current `main`, and CI is green at this head. It was also built and tested together with the other open wave branches (#3917–#3926).
R0Y00 commented 2026-12-03 12:47:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T12:47:09Z.

Review: APPROVED


Reviewed 04e72ee0. The e64 recognition stays on plain unsigned LT, and the child still intersects its predicate with the enclosing lane mask before restoring parent EXEC.

Independently built compile_dxil with Windows MSVC Debug and ran ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^native_mesh_cmpx_lt_u32_ir$': 1/1 passed (five DXIL cases and eight refusals). With the original e32-only guard restored locally, the fixture failed at nested-vop3 with the expected SAVEEXEC refusal at +0x3c. The unmodified build passed again. This was DXIL validation and inspection.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6170094337 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3922#pullrequestreview-6170094337). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T12:47:09Z. **Review:** APPROVED --- Reviewed 04e72ee0. The e64 recognition stays on plain unsigned LT, and the child still intersects its predicate with the enclosing lane mask before restoring parent EXEC. Independently built compile_dxil with Windows MSVC Debug and ran `ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^native_mesh_cmpx_lt_u32_ir$'`: 1/1 passed (five DXIL cases and eight refusals). With the original e32-only guard restored locally, the fixture failed at nested-vop3 with the expected SAVEEXEC refusal at +0x3c. The unmodified build passed again. This was DXIL validation and inspection.
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!3922
No description provided.