gpu-test-results: RTX 5070 Laptop (NVIDIA 32.0.16.2140) - E_INVALIDARG creating the compute PSO for the 4 divergent-loop exit-mask VALU tests #259

Open
opened 2026-11-26 14:00:43 +00:00 by github-bot · 2 comments
Owner

@⁠Pr-Leonida on GitHub · 2026-11-26 13:58 UTC · original

gpu-test-results: RTX 5070 Laptop (NVIDIA 32.0.16.2140, Windows 11 26200) — E_INVALIDARG creating the compute PSO for the 4 divergent-loop exit-mask VALU tests

Machine: i9-14900HX, 32 GB RAM, RTX 5070 Laptop (8 GB VRAM), Windows 11 Pro 10.0.26200, NVIDIA driver 32.0.16.2140, rustc 1.98.1, at 01aadd1.

Four victory-shader GPU-exec tests fail at compute-PSO creation on this card, with the D3D12 driver returning E_INVALIDARG (localized here as Paramètre incorrect.):

emit::valu_tests::loop_exit_mask_counted_after_the_loop          valu_tests.rs:1447  pipeline: "Paramètre incorrect."
emit::valu_tests::mask_grown_inside_a_branch_counted_after_it    valu_tests.rs:1526  pipeline: "Paramètre incorrect."
emit::valu_tests::scalar_counted_in_a_divergent_loop_read_after_it valu_tests.rs:1504
emit::valu_tests::scalar_counted_in_nested_divergent_loops       valu_tests.rs:1591

The failure is host.compute_pipeline(&shader).expect("pipeline") — the shader translates fine, but ID3D12Device::CreateComputePipelineState (or the root-signature step in front of it) returns E_INVALIDARG.

This is isolated to the RTX, not the laptop's secondary GPU:

  • Run with VICTORY_ADAPTER=nvidia (forces Host::new onto the RTX): these 4 still fail at compute_pipeline with E_INVALIDARG.
  • All 23 other valu_tests pass on the same RTX in the same run (e.g. v_dot_products_of_packed_fields, v_cmp_*, v_cvt_*, bfe_signed_and_unsigned_match_rdna2 … all ok).

So it is specific to these four shaders, all of which are the divergent-loop exit-mask / lane-counting class (a scalar counter a divergent loop adds in, read after the loop; an exit mask grown inside a branch; nested divergent loops). The emitted DXIL/SPIR-V for that pattern is what the NVIDIA driver refuses at PSO creation.

This is distinct from the hybrid-laptop iGPU test-environment issue in #137 (where a 16-lane Intel iGPU in the adapter set refuses console wave64 fixtures at translation). Here the adapter is explicitly the RTX and the refusal is at PSO creation, so it looks like a translator/driver mismatch on the emitted shader rather than an incapable adapter.

Happy to dump the emitted DXIL/SPIR-V and the root signature for any of the four, or run them under VICTORY_D3D12_DEBUG=1 / a D3D12 layer to capture the driver's specific complaint, if that would help pinpoint it.

**@⁠Pr-Leonida** on GitHub · 2026-11-26 13:58 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/259) **gpu-test-results: RTX 5070 Laptop (NVIDIA 32.0.16.2140, Windows 11 26200) — `E_INVALIDARG` creating the compute PSO for the 4 divergent-loop exit-mask VALU tests** Machine: i9-14900HX, 32 GB RAM, RTX 5070 Laptop (8 GB VRAM), Windows 11 Pro 10.0.26200, NVIDIA driver 32.0.16.2140, rustc 1.98.1, at `01aadd1`. Four `victory-shader` GPU-exec tests fail at **compute-PSO creation** on this card, with the D3D12 driver returning `E_INVALIDARG` (localized here as `Paramètre incorrect.`): ``` emit::valu_tests::loop_exit_mask_counted_after_the_loop valu_tests.rs:1447 pipeline: "Paramètre incorrect." emit::valu_tests::mask_grown_inside_a_branch_counted_after_it valu_tests.rs:1526 pipeline: "Paramètre incorrect." emit::valu_tests::scalar_counted_in_a_divergent_loop_read_after_it valu_tests.rs:1504 emit::valu_tests::scalar_counted_in_nested_divergent_loops valu_tests.rs:1591 ``` The failure is `host.compute_pipeline(&shader).expect("pipeline")` — the shader **translates** fine, but `ID3D12Device::CreateComputePipelineState` (or the root-signature step in front of it) returns `E_INVALIDARG`. This is isolated to the RTX, not the laptop's secondary GPU: - Run with `VICTORY_ADAPTER=nvidia` (forces `Host::new` onto the RTX): these 4 still fail at `compute_pipeline` with `E_INVALIDARG`. - **All 23 other `valu_tests` pass** on the same RTX in the same run (e.g. `v_dot_products_of_packed_fields`, `v_cmp_*`, `v_cvt_*`, `bfe_signed_and_unsigned_match_rdna2` … all `ok`). So it is specific to these four shaders, all of which are the **divergent-loop exit-mask / lane-counting** class (a scalar counter a divergent loop adds in, read after the loop; an exit mask grown inside a branch; nested divergent loops). The emitted DXIL/SPIR-V for that pattern is what the NVIDIA driver refuses at PSO creation. This is distinct from the hybrid-laptop iGPU test-environment issue in #137 (where a 16-lane Intel iGPU in the adapter set refuses console wave64 fixtures at translation). Here the adapter is explicitly the RTX and the refusal is at PSO creation, so it looks like a translator/driver mismatch on the emitted shader rather than an incapable adapter. Happy to dump the emitted DXIL/SPIR-V and the root signature for any of the four, or run them under `VICTORY_D3D12_DEBUG=1` / a D3D12 layer to capture the driver's specific complaint, if that would help pinpoint it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:00:43 +00:00
Author
Owner

@⁠altLov3r on GitHub · 2026-11-26 18:54 UTC · original

Intel Arc A770 and WARP reproduction for #259

Intel Arc A770 (driver 32.0.101.9150), Windows 11 Pro build 26300, Ryzen 5 3600XT, 16 GB RAM, rustc 1.98.1. The Arc reports a D3D12 wave-lane range of 8–32. WARP reports 4–4.

main at 4f62c2a5e27e7beebf3e8d68f77898e43dc7b77c

The VALU suite reported 23 passed and 4 failed. A focused run explicitly selecting the A770 reproduced all four. A second focused run forcing WARP reproduced all four there too.

Test Arc A770 WARP
loop_exit_mask_counted_after_the_loop CreateComputePipelineState rejected the shader Same
mask_grown_inside_a_branch_counted_after_it CreateComputePipelineState rejected the shader Same
scalar_counted_in_a_divergent_loop_read_after_it 16, 32, 48, 64 in groups of 16 lanes, expected 64 in every lane 4, 8, …, 64 in groups of 4 lanes
scalar_counted_in_nested_divergent_loops 4, 8, 12, 16 in groups of 16 lanes, expected 16 in every lane Same readback as Arc

Temporary logging distinguished root-signature creation from compute PSO creation and ran the SDK DXIL validator on each shader. All four shaders passed validation on both runs. The first two cases created the root signature and failed at CreateComputePipelineState with The parameter is incorrect. The temporary logging left the shader bytes passed to D3D12 untouched.

Reproduce on main in PowerShell:

$cases = @(
    'loop_exit_mask_counted_after_the_loop'
    'mask_grown_inside_a_branch_counted_after_it'
    'scalar_counted_in_a_divergent_loop_read_after_it'
    'scalar_counted_in_nested_divergent_loops'
)
$env:VICTORY_ADAPTER = 'A770'
cargo test --locked -p victory-shader --lib -- @cases --test-threads=1 --nocapture
$env:VICTORY_WARP = '1'
cargo test --locked -p victory-shader --lib -- @cases --test-threads=1 --nocapture
Remove-Item Env:VICTORY_WARP, Env:VICTORY_ADAPTER
**@⁠altLov3r** on GitHub · 2026-11-26 18:54 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/259#issuecomment-7200990672) ## Intel Arc A770 and WARP reproduction for #259 Intel Arc A770 (driver 32.0.101.9150), Windows 11 Pro build 26300, Ryzen 5 3600XT, 16 GB RAM, rustc 1.98.1. The Arc reports a D3D12 wave-lane range of 8–32. WARP reports 4–4. ### `main` at `4f62c2a5e27e7beebf3e8d68f77898e43dc7b77c` The VALU suite reported 23 passed and 4 failed. A focused run explicitly selecting the A770 reproduced all four. A second focused run forcing WARP reproduced all four there too. | Test | Arc A770 | WARP | | --- | --- | --- | | `loop_exit_mask_counted_after_the_loop` | `CreateComputePipelineState` rejected the shader | Same | | `mask_grown_inside_a_branch_counted_after_it` | `CreateComputePipelineState` rejected the shader | Same | | `scalar_counted_in_a_divergent_loop_read_after_it` | 16, 32, 48, 64 in groups of 16 lanes, expected 64 in every lane | 4, 8, …, 64 in groups of 4 lanes | | `scalar_counted_in_nested_divergent_loops` | 4, 8, 12, 16 in groups of 16 lanes, expected 16 in every lane | Same readback as Arc | Temporary logging distinguished root-signature creation from compute PSO creation and ran the SDK DXIL validator on each shader. All four shaders passed validation on both runs. The first two cases created the root signature and failed at `CreateComputePipelineState` with `The parameter is incorrect.` The temporary logging left the shader bytes passed to D3D12 untouched. Reproduce on `main` in PowerShell: ```powershell $cases = @( 'loop_exit_mask_counted_after_the_loop' 'mask_grown_inside_a_branch_counted_after_it' 'scalar_counted_in_a_divergent_loop_read_after_it' 'scalar_counted_in_nested_divergent_loops' ) $env:VICTORY_ADAPTER = 'A770' cargo test --locked -p victory-shader --lib -- @cases --test-threads=1 --nocapture $env:VICTORY_WARP = '1' cargo test --locked -p victory-shader --lib -- @cases --test-threads=1 --nocapture Remove-Item Env:VICTORY_WARP, Env:VICTORY_ADAPTER ```
Author
Owner

@⁠ANDREANIADS on GitHub · 2026-11-26 21:14 UTC · original

RTX 3070 hardware readback for #259

On a physical GeForce RTX 3070, 8 GiB, driver 621.40, Windows 11 build 26300.9974, I reproduced all four failures on main@4f62c2a5. The two scalar cases reached dispatch and returned different values in the two halves of the console wave.

Case Original main #299 at be1f933e #299 + mask fixtures using the normal emitter
Loop exit mask Pipeline creation failed Same 64 in every lane
Mask grown in a branch Pipeline creation failed Same 32 in every lane
Scalar after the loop 32 in lanes 0–31, 64 in lanes 32–63 All 64 All 64
Scalar after nested loops 8 in lanes 0–31, 16 in lanes 32–63 All 16 All 16

I used VICTORY_ADAPTER=RTX 3070 and VICTORY_WARP=0. The driver returned “Parâmetro incorreto” on the mask pipeline path; this run did not distinguish the underlying D3D12 call. Routing both mask fixtures through the normal emitter with host.target() preserves pipeline creation, dispatch and all 64 readbacks. A new asymmetric fixture sets 5 bits in the lower half and 23 in the upper half and requires 28 in every lane. All five passed on the RTX; none skipped.

This confirms loyodea’s scalar fix in #299 on physical NVIDIA hardware and God489’s diagnosis of the mask fixtures in #68. The two main/PR patch paths were applied to clean source copies and checked against the tested files.

I used an isolated release build with MSVC Rust 1.98.0 (repository pin 1.98.1) and offline dependencies (thiserror/thiserror-impl 2.0.19, miniz_oxide 0.8.9, syn 3.0.3, unicode-ident 1.0.24). These results cover synthetic shaders. No gameplay or FPS measurements were taken.

**@⁠ANDREANIADS** on GitHub · 2026-11-26 21:14 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/259#issuecomment-7203531846) ### RTX 3070 hardware readback for #259 On a physical **GeForce RTX 3070, 8 GiB, driver 621.40**, Windows 11 build 26300.9974, I reproduced all four failures on `main@4f62c2a5`. The two scalar cases reached dispatch and returned different values in the two halves of the console wave. | Case | Original main | #299 at be1f933e | #299 + mask fixtures using the normal emitter | |---|---|---|---| | Loop exit mask | Pipeline creation failed | Same | 64 in every lane | | Mask grown in a branch | Pipeline creation failed | Same | 32 in every lane | | Scalar after the loop | 32 in lanes 0–31, 64 in lanes 32–63 | All 64 | All 64 | | Scalar after nested loops | 8 in lanes 0–31, 16 in lanes 32–63 | All 16 | All 16 | I used `VICTORY_ADAPTER=RTX 3070` and `VICTORY_WARP=0`. The driver returned “Parâmetro incorreto” on the mask pipeline path; this run did not distinguish the underlying D3D12 call. Routing both mask fixtures through the normal emitter with `host.target()` preserves pipeline creation, dispatch and all 64 readbacks. A new asymmetric fixture sets 5 bits in the lower half and 23 in the upper half and requires 28 in every lane. **All five passed on the RTX; none skipped.** This confirms loyodea’s scalar fix in #299 on physical NVIDIA hardware and God489’s diagnosis of the mask fixtures in #68. The two main/PR patch paths were applied to clean source copies and checked against the tested files. I used an isolated release build with MSVC Rust 1.98.0 (repository pin 1.98.1) and offline dependencies (thiserror/thiserror-impl 2.0.19, miniz_oxide 0.8.9, syn 3.0.3, unicode-ident 1.0.24). These results cover synthetic shaders. No gameplay or FPS measurements were taken.
This discussion has been locked. Commenting is limited to contributors.
No description provided.