Skip to content

tests: read the gfx1013 wave index in the wave64 readfirstlane fixture - #3920

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
timbot103:shader/native-wave64-empty-readfirstlane
Dec 3, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
timbot103:shader/native-wave64-empty-readfirstlane

Conversation

@timbot103

Copy link
Copy Markdown
Contributor

Refs #3224. Fixture regression from #3796.

Change

Use the gfx1013 TG_SIZE[11:6] wave index in the source-built empty-EXEC fixture. The old extraction returned zero for both virtual waves, skipping the writes in the 128-thread case. On d2e6a4ed, both RTX 5080 and app-local WARP retained 0x69696969 at word 264, where the model expected 0x00004005. The 64-thread case passed on both adapters.

Register the same guarded readback for WARP. The 128-thread request without the packed state still refuses with multi-wave64 exchange requires converged group control flow. The negative readback control still distinguishes the upper half's lane 32 value.

Verification

Windows 11 26200.9974, NVIDIA GeForce RTX 5080 driver 32.0.16.2140 (621.40), Microsoft Basic Render Driver with app-local WARP 1.0.22.0.20261027.1, DXC 1.9.2602.17 (21d28f727). The native replay does not enable the D3D12 debug layer.

After configuring dev and release with the project Python environment and placing app-local WARP beside each build's executables:

$env:XBOX2WINDOWS_ADAPTER = 'NVIDIA GeForce RTX 5080'
cmake --build out/build/dev -- -j 6
cmake --build out/build/release --target compile_dxil native_store_replay native_wave_request_gpu -- -j 6
cmake --build out/build/release --target offscreen_check -- -j 6
ctest --preset dev --no-tests=error -j 1 -R '^native_(wave64_readfirstlane_empty_|compute_tg_size_|virtual_wave_latch$)' -V
ctest --preset release --no-tests=error -j 1 -R '^native_(wave64_readfirstlane_empty_|compute_tg_size_|virtual_wave_latch$)' -V
ctest --preset pr --no-tests=error -j 1 -R '^native_wave64_readfirstlane_empty_controls$' -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 7 tests, with zero failures or skips. The fixture compared all 2,064 words per request on each adapter, including guards.
  • The PR preset control passed. Full Debug build, documentation, bidirectional-control, and diff checks passed.

🤖 Generated with Claude Code

Refs R0Y00#3224. The outdated fixture used the wave-index encoding from before R0Y00#3796.

@R0Y00 R0Y00 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ad446f2. The fixture now shifts TG_SIZE by six and masks the six-bit wave index, while the group wave count still comes from the low six bits. With MSVC Debug and SDK DXC on Windows 11 build 26300, the offline compiler/refusal controls passed. RTX 4060 Laptop driver 32.0.16.1656 matched all 2,064 words in both the 64-thread and 128-thread runs, and both lane-32 negative expectations differed. Reverting only the shift reproduced the old 128-thread mismatch at word 264 (0x69696969 vs 0x00004005) while 64 threads still passed. Inbox WARP returned capability skip 77. The replay fixture does not enable the D3D12 debug layer.

@R0Y00
R0Y00 merged commit 3244136 into R0Y00:main Dec 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants