shader: pack the HLSL wave index in TG_SIZE bits 11:6 #3934
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3934
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3932"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCRefs #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_hardwarepassed 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 withlane 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.
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
@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.