shader: pack the HLSL wave index in TG_SIZE bits 11:6 #3934

Manually merged
github merged 1 commit from github-bot/gh-3932 into gh-pr/3932/base 2026-12-03 14:01:30 +00:00 AGit
Owner

@⁠timbot103 on GitHub · 2026-12-03 12:43 UTC · original
timbot103:tests/wave-request-wave-index → main · +46 −8 · 5 files · 1 commits · merged 2026-12-03 13:59 UTC

Refs #3798 and #3922.

Change

Pack the HLSL wave index in TG_SIZE[11:6], matching the direct frontend. Extract those bits in the source-built two-wave request. Register the same request suite on wave32-capable WARP.

On a44d1967, native_wave_request_hardware passed because the HLSL writer and fixture both used the old bit-20 field. The WARP entry was absent from main. With WARP selection enabled, the old writer and fixture passed there too. Changing the extraction alone failed on both adapters at lane 32 with lane 32: 0 0 0 2. The corrected pair passes and rejects the old extraction at that same lane.

Verification

Windows 11 26200.9974, RTX 5080 driver 32.0.16.2140 (621.40), Microsoft Basic Render Driver with app-local WARP 1.0.22.0 and DXC 1.9.2602.17 (21d28f727). The HLSL request runner ran with the debug layer disabled.

cmake --build out/build/dev -- -j 6
cmake --build out/build/release --target compile_dxil native_wave_request_gpu offscreen_check -- -j 6
ctest --preset dev --no-tests=error -j 1 -R '^native_(wave_request_|compute_tg_size_)' -V
ctest --preset release --no-tests=error -j 1 -R '^native_(wave_request_|compute_tg_size_)' -V
ctest --preset pr --no-tests=error -j 1 -R '^native_compute_tg_size_ir$' -V
python -B tests/bidi_controls_check.py
python -B tests/docs_links_check.py
git diff --check origin/main...HEAD

Debug and Release each passed 5 tests with 0 failures and 0 skips. Both adapters matched the 64-lane request readback. The PR-preset IR check, full Debug build, and repository checks passed.

🤖 Generated with Claude Code

**@⁠timbot103** on GitHub · 2026-12-03 12:43 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3932) `timbot103:tests/wave-request-wave-index` → `main` · +46 −8 · 5 files · 1 commits · merged 2026-12-03 13:59 UTC Refs #3798 and #3922. ## Change Pack the HLSL wave index in `TG_SIZE[11:6]`, matching the direct frontend. Extract those bits in the source-built two-wave request. Register the same request suite on wave32-capable WARP. On `a44d1967`, `native_wave_request_hardware` passed because the HLSL writer and fixture both used the old bit-20 field. The WARP entry was absent from main. With WARP selection enabled, the old writer and fixture passed there too. Changing the extraction alone failed on both adapters at lane 32 with `lane 32: 0 0 0 2`. The corrected pair passes and rejects the old extraction at that same lane. ## Verification Windows 11 26200.9974, RTX 5080 driver 32.0.16.2140 (621.40), Microsoft Basic Render Driver with app-local WARP 1.0.22.0 and DXC 1.9.2602.17 (21d28f727). The HLSL request runner ran with the debug layer disabled. ```powershell cmake --build out/build/dev -- -j 6 cmake --build out/build/release --target compile_dxil native_wave_request_gpu offscreen_check -- -j 6 ctest --preset dev --no-tests=error -j 1 -R '^native_(wave_request_|compute_tg_size_)' -V ctest --preset release --no-tests=error -j 1 -R '^native_(wave_request_|compute_tg_size_)' -V ctest --preset pr --no-tests=error -j 1 -R '^native_compute_tg_size_ir$' -V python -B tests/bidi_controls_check.py python -B tests/docs_links_check.py git diff --check origin/main...HEAD ``` Debug and Release each passed 5 tests with 0 failures and 0 skips. Both adapters matched the 64-lane request readback. The PR-preset IR check, full Debug build, and repository checks passed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Refs #3796 and #3920. Check the HLSL request on WARP and hardware, including a negative control for the old wave-index field.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 12:49:32 +00:00
github-bot changed target branch from main to gh-pr/3932/base 2026-12-03 14:01:20 +00:00
github manually merged commit 0ed5ace8b0 into gh-pr/3932/base 2026-12-03 14:01:30 +00:00
Author
Owner

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

Independently reviewed 0ed5ace8. The HLSL writer now places the wave index in bits 11:6, in agreement with the direct frontend. MSVC Debug, Windows 11 build 26300: ctest --preset dev --no-tests=error -j 1 -V -R '^native_(wave_request_|compute_tg_size_)' reported 3 passes and 2 capability skips for inbox WARP 10.0.26100.9818. RTX 4060 Laptop 32.0.16.1656 passed both hardware cases. The offscreen TG_SIZE run had the debug layer enabled. The built-in wrong-field control diverged at lane 32. Temporarily restoring the old shift in the HLSL writer made the hardware test fail, and restoring the compiler made it pass again.

**@⁠R0Y00** on GitHub · 2026-12-03 13:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3932#pullrequestreview-6171212139) · **approved these changes** Independently reviewed 0ed5ace8. The HLSL writer now places the wave index in bits 11:6, in agreement with the direct frontend. MSVC Debug, Windows 11 build 26300: `ctest --preset dev --no-tests=error -j 1 -V -R '^native_(wave_request_|compute_tg_size_)'` reported 3 passes and 2 capability skips for inbox WARP 10.0.26100.9818. RTX 4060 Laptop 32.0.16.1656 passed both hardware cases. The offscreen TG_SIZE run had the debug layer enabled. The built-in wrong-field control diverged at lane 32. Temporarily restoring the old shift in the HLSL writer made the hardware test fail, and restoring the compiler made it pass again.
github-bot referenced this pull request from a commit 2026-12-03 15:01:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.