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

Manually merged
github merged 1 commit from github-bot/gh-3922 into gh-pr/3922/base 2026-12-03 12:49:55 +00:00 AGit
Owner

@⁠timbot103 on GitHub · 2026-12-03 10:38 UTC · original
timbot103:shader/mesh-cmpx-lt-u32 → main · +134 −3 · 4 files · 1 commits · merged 2026-12-03 12:47 UTC

Part of #3705

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

**@⁠timbot103** on GitHub · 2026-12-03 10:38 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3922) `timbot103:shader/mesh-cmpx-lt-u32` → `main` · +134 −3 · 4 files · 1 commits · merged 2026-12-03 12:47 UTC Part of #3705 ## 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 10:41:50 +00:00
Author
Owner

@⁠timbot103 on GitHub · 2026-12-03 12:23 UTC · original

Marked Ready for review now that #3919–#3921 have merged, keeping within 5 non-draft PRs per #3516. 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 (#3919–#3926).

**@⁠timbot103** on GitHub · 2026-12-03 12:23 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3922#issuecomment-7378154646) Marked Ready for review now that #3919–#3921 have merged, keeping within 5 non-draft PRs per #3516. 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 (#3919–#3926).
github-bot changed target branch from main to gh-pr/3922/base 2026-12-03 12:49:49 +00:00
github manually merged commit 04e72ee08e into gh-pr/3922/base 2026-12-03 12:49:55 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 12:47 UTC · original · approved these changes

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.

**@⁠R0Y00** on GitHub · 2026-12-03 12:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3922#pullrequestreview-6170094337) · **approved these changes** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.