[pr-tests][shaders] Cover EXACT64 ordered-LDS readback on native Wave32 #179

Manually merged
TrustNo1 merged 1 commit from UncommonDLL/Darner:tests/exact64-ordered-lds-wave32 into main 2026-12-04 02:17:36 +00:00
Contributor

What it changes

Adds one opt-in synthetic regression test in wave64_tests.rs. The test verifies that production emit selects the with_exact_lds fold, then checks every guest lane’s tagged LDS readback after reconvergence.

How it was tested

Tested on 57dea7f2367c4e902b8ef507f90536564b670b04 with an NVIDIA GeForce RTX 5070 Ti, driver 621.40, and reported native wave range (32,32).

The test process used DARNER_EXACT64=34992f2b65a789a5, DARNER_WAVE_WIDE_FALLBACK_SKIP=34992f2b65a789a5, and DARNER_REQUIRE_HW_GPU=1, with DARNER_WARP unset.

cargo test --locked -p darner-shader --lib emit::wave64_tests::exact64_ordered_lds_readback_on_native_wave32 -- --ignored --exact --nocapture --test-threads=1

Native Cargo exit 0. One selected test passed. Both synthetic dispatches matched all 64 tagged lane values.

Active guest lanes Observed LDS counter Lane values matched
[0,33) 33 64/64
[32,64) 32 64/64

Coverage is limited to these two synthetic masks on the recorded native Wave32 adapter and driver.

Checklist

  • One test-only change based on main.
  • The fixture uses synthetic data and follows docs/asset-policy.md.
  • Dependencies recorded below.
    • Depends on: none

Checked for overlap

  • Searched the open PRs for this test case and for changes to wave64_tests.rs.

#123 covers retry-ladder routing and #76 changes translator defaults. #43 covers paired lanes and #33 covers light clustering. Those two PRs and #44, #47, #48, and #49 touch wave64_tests.rs and add a dumped-container diagnostic. The pinned tree and checked PRs leave the production EXACT64 readback cases above uncovered.

## What it changes Adds one opt-in synthetic regression test in `wave64_tests.rs`. The test verifies that production `emit` selects the `with_exact_lds` fold, then checks every guest lane’s tagged LDS readback after reconvergence. ## How it was tested Tested on `57dea7f2367c4e902b8ef507f90536564b670b04` with an NVIDIA GeForce RTX 5070 Ti, driver `621.40`, and reported native wave range `(32,32)`. The test process used `DARNER_EXACT64=34992f2b65a789a5`, `DARNER_WAVE_WIDE_FALLBACK_SKIP=34992f2b65a789a5`, and `DARNER_REQUIRE_HW_GPU=1`, with `DARNER_WARP` unset. ```text cargo test --locked -p darner-shader --lib emit::wave64_tests::exact64_ordered_lds_readback_on_native_wave32 -- --ignored --exact --nocapture --test-threads=1 ``` Native Cargo exit `0`. One selected test passed. Both synthetic dispatches matched all 64 tagged lane values. | Active guest lanes | Observed LDS counter | Lane values matched | | --- | ---: | ---: | | `[0,33)` | 33 | 64/64 | | `[32,64)` | 32 | 64/64 | Coverage is limited to these two synthetic masks on the recorded native Wave32 adapter and driver. ## Checklist - [x] One test-only change based on `main`. - [x] The fixture uses synthetic data and follows `docs/asset-policy.md`. - [x] Dependencies recorded below. - Depends on: none ## Checked for overlap - [x] Searched the open PRs for this test case and for changes to `wave64_tests.rs`. #123 covers retry-ladder routing and #76 changes translator defaults. #43 covers paired lanes and #33 covers light clustering. Those two PRs and #44, #47, #48, and #49 touch `wave64_tests.rs` and add a dumped-container diagnostic. The pinned tree and checked PRs leave the production EXACT64 readback cases above uncovered.
First-time contributor

I ran the unmodified test at b71083486d twice on an RTX 4070 Ti SUPER, NVIDIA 617.14, Windows 11 build 28000. The adapter reported Wave32 (32/32), and the translator selected with_exact_lds. In both processes the masks [0,33) and [32,64) gave counters 33 and 32. All 64 lane values matched in each dispatch.

In a local copy I changed only the case table and its printed case count. Eight additional masks passed twice on the same GPU. In particular, [0,0) returned 0, [31,33) returned 2 across the half-wave boundary, [63,64) returned 1 and [0,64) returned 64. The remaining cases were [0,1), [31,32), [32,33) and [0,32).

For a negative control I changed the synthetic shader’s atomic increment from 1 to 0 and kept the expected values. The hardware test failed on lane 0 of [0,33), expected 0xd26700a1, read 0xd2670080. These results cover shader correctness on this adapter. No gameplay or FPS measurement.

I used the exact test filter and the three environment values in the PR description, with WARP unset and Microsoft’s signed x64 DXIL validator from DXC v1.8.2505.1.

I ran the unmodified test at `b71083486d` twice on an RTX 4070 Ti SUPER, NVIDIA 617.14, Windows 11 build 28000. The adapter reported Wave32 (32/32), and the translator selected `with_exact_lds`. In both processes the masks [0,33) and [32,64) gave counters 33 and 32. All 64 lane values matched in each dispatch. In a local copy I changed only the case table and its printed case count. Eight additional masks passed twice on the same GPU. In particular, [0,0) returned 0, [31,33) returned 2 across the half-wave boundary, [63,64) returned 1 and [0,64) returned 64. The remaining cases were [0,1), [31,32), [32,33) and [0,32). For a negative control I changed the synthetic shader’s atomic increment from 1 to 0 and kept the expected values. The hardware test failed on lane 0 of [0,33), expected `0xd26700a1`, read `0xd2670080`. These results cover shader correctness on this adapter. No gameplay or FPS measurement. I used the exact test filter and the three environment values in the PR description, with WARP unset and Microsoft’s signed x64 DXIL validator from [DXC v1.8.2505.1](https://github.com/microsoft/DirectXShaderCompiler/releases/tag/v1.8.2505.1).
TrustNo1 manually merged commit dc332e0ecb into main 2026-12-04 02:17:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!179
No description provided.