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
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#259
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@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_INVALIDARGcreating the compute PSO for the 4 divergent-loop exit-mask VALU testsMachine: 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-shaderGPU-exec tests fail at compute-PSO creation on this card, with the D3D12 driver returningE_INVALIDARG(localized here asParamètre incorrect.):The failure is
host.compute_pipeline(&shader).expect("pipeline")— the shader translates fine, butID3D12Device::CreateComputePipelineState(or the root-signature step in front of it) returnsE_INVALIDARG.This is isolated to the RTX, not the laptop's secondary GPU:
VICTORY_ADAPTER=nvidia(forcesHost::newonto the RTX): these 4 still fail atcompute_pipelinewithE_INVALIDARG.valu_testspass 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… allok).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.@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.
mainat4f62c2a5e27e7beebf3e8d68f77898e43dc7b77cThe 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.
loop_exit_mask_counted_after_the_loopCreateComputePipelineStaterejected the shadermask_grown_inside_a_branch_counted_after_itCreateComputePipelineStaterejected the shaderscalar_counted_in_a_divergent_loop_read_after_itscalar_counted_in_nested_divergent_loopsTemporary 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
CreateComputePipelineStatewithThe parameter is incorrect.The temporary logging left the shader bytes passed to D3D12 untouched.Reproduce on
mainin PowerShell:@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.be1f933eI used
VICTORY_ADAPTER=RTX 3070andVICTORY_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 withhost.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.