Tests: verify direct DXIL vs HLSL GPU parity for wave, LDS atomic, and MIMG ops #1778
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1778
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1778"
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?
@thiagocalile on GitHub · 2026-11-24 20:35 UTC · original
thiagocalile:tests-dxil-hlsl-gpu-parity→main· +333 −0 · 1 files · 2 commits · openAdds GPU differential parity tests between the direct RDNA2 → DXIL translator (
xcl::gpu::dxil::kernel) and the HLSL + DXC path (xcl::gpu::recomp) across native wave64, split wave64, and wave32. Covers cross-lane/DPP wave ops, LDS atomics + barriers, and MIMG texture ops + 32-bit image atomics. No runtime or recompiler source files are changed.What is in it
crates/xcl/tests/gpu_dxil_parity.rs(new integration test, 333 lines):direct_dxil_cross_lane_and_dpp_parity: asserts bit-exact SGPR/VGPR parity between direct DXIL (validated bydxil.dll) and HLSL+DXC forv_readlane_b32(low and high half),v_readfirstlane_b32under divergentEXEC,v_writelane_b32,ds_swizzle_b32(quad reverse and XOR-1),ds_bpermute_b32,v_permlane16_b32(default andFI/BC),v_permlanex16_b32, andVOP1_VOP_DPP16/VOP1_VOP_DPP8.direct_dxil_lds_atomics_and_barrier_parity: asserts bit-exact VGPR parity for per-lane and multi-lane contention LDS atomics (add,sub,and,or,xor,umin/umax,smin/smax,wrxchg,cmpst,inc,dec),s_barrier, and divergentEXECmasking.direct_dxil_mimg_image_ops_and_atomics_parity: asserts bit-exact VGPR and UAV texture readback parity forimage_load,image_store,image_gather4_lz, and 32-bitimage_atomic_*(add,sub,and,or,xor,swapGLC=1/0,inc,dec,cmpswap,smin,smax, and 1×1 contention).Tested
32.0.21045.29003;XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon cargo test -p xcl --test gpu_dxil_parity -- --nocapture: 3 passed, 0 failed, 0 ignored (0.45s; native wave64, split wave64, and wave32 all executed on hardware).XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 889 passed, 3 failed, 42 ignored.main(b9b6ea6) on this RX 6600 (placed_title_textures_share_vram_and_preserve_pixels: 3D mip subresource mismatch, plus 2 mutex-poison cascadestransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory; tracked by #1028).SKIPPED(not counted as coverage):heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows,shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (0x887A002D)(plus D3D12 debug-layer tests skip becaused3d12SDKLayers.dllis not installed).Not tested
AI use
crates/xcl/tests/gpu_dxil_parity.rs, ran the targeted and full workspace test suites on my RX 6600, and drafted this PR description; I reviewed the diff and test output before opening the PR.@Ctrl-Alt-Haze on GitHub · 2026-11-24 21:20 UTC · original
Tested (head
b20b9577231644606e0bf2b65eb7b50e3970b32a, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340,rustc 1.99.1, DXC1.8.2502.11, debug, synthetic tests only):.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 866 passed, 2 failed, 26 ignored (fail-fast stopped attests\gpu_dxil_parity.rsbefore remaining integration test binaries ran;SKIPPEDGPU tests seen:2 (no wave64)—gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware;1 (no heap windows)—heap_window_out_of_memory_falls_back_to_the_switch_form).tests\gpu_dxil_parity.rs(1 passed, 2 failed):direct_dxil_cross_lane_and_dpp_parity: okdirect_dxil_lds_atomics_and_barrier_parity: FAILED atcrates\xcl\tests\gpu_dxil_parity.rs:83:89:lds_atomics_and_barrier/split-w64: run direct: CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)direct_dxil_mimg_image_ops_and_atomics_parity: FAILED atcrates\xcl\tests\gpu_dxil_parity.rs:90:17:mimg_ops_and_atomics/wave32: lane 0 v7: left: 0, right: 1065353216(1.0f32in the 4th component ofIMAGE_LOADDMASK 0xF)AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and extracted the log results.
@futurepro62 on GitHub · 2026-11-24 22:21 UTC · original
Another RTX 5070 Ti, to help split the two failures above by GPU, driver and DXC. Same head
b20b957.Tested
cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1, 5 runs alone on the machine: 2 passed, 1 failed every time (plus the same failure in 2 full-suite runs).direct_dxil_lds_atomics_and_barrier_parityfails 7 of 7, the same way as above:lds_atomics_and_barrier/split-w64: run direct: CreateComputePipelineState: ... (0x8007000E).direct_dxil_mimg_image_ops_and_atomics_paritypasses 7 of 7.direct_dxil_cross_lane_and_dpp_paritypasses.XCL_ADAPTER=radeon): all 3 pass; full suite 892 passed, 0 failed, 42 ignored.So on this card the
split-w64LDSE_OUTOFMEMORYhappens with DXC 1.9 and an older driver too. It looks tied to the RTX 5070 Ti (Blackwell) rather than DXC 1.8 or driver 621.35, while the RTX 3060 above passes it. TheIMAGE_LOADalpha mismatch does not happen here, so that one may be the newer driver.Not tested
AI use
@LocranKing on GitHub · 2026-11-24 22:24 UTC · original
Independent Windows 11 + 8 GB Ampere (wave32)
--releaseverification of exact headb20b9577231644606e0bf2b65eb7b50e3970b32a(merge-baseb9b6ea6): all 3 new parity tests pass on RTX 3060 Ti with driver621.01and DXC1.9.2602.17.This adds a data point between the RTX 5070 Ti (
621.35, DXC1.8.2502.11) failure and the RTX 3060 (610.88, DXC1.9.2602.17, debug) pass above: on the621.xxdriver branch (621.01) paired with Ampere + DXC1.9.2602.17(--release), bothwave32andsplit-w64pass cleanly.Tested
26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, Ampere, wave32 only), driver32.0.16.2101(621.01),rustc 1.100.0 (0ef1bc386 2026-11-09)(x86_64-pc-windows-msvc), DXC1.9.2602.17 (21d28f72)/dxil.dll 1.9.2602.17,--release.cargo test -p xcl --test gpu_dxil_parity --release -- --nocapture --test-threads=1): 3 passed, 0 failed, 0 ignored (0.99 s,0 SKIPPED;native-w64omitted on wave32):direct_dxil_cross_lane_and_dpp_parity—okdirect_dxil_lds_atomics_and_barrier_parity—okdirect_dxil_mimg_image_ops_and_atomics_parity—okcargo test --workspace --release --no-fail-fast -- --test-threads=4 --nocapture): 892 passed, 0 failed, 42 ignored (+3over merge-baseb9b6ea6's889/0/42). Expected hostSKIPPEDlines:2wave64 (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware),1driver cache disable (pso_measurement_compiles_an_exact_synthetic_record),2D3D12 debug layer (test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state),1heap windows (heap_window_out_of_memory_falls_back_to_the_switch_form).Not tested: native wave64, DXC
1.8.2502.11, Blackwell/AMD/Intel GPUs, debug build, or retail title smoke (test-only PR).AI use: Antigravity (
Gemini 4 Neon) built and ran the--releasetargeted and workspace test suites locally and drafted this report from the captured logs.@PHeitor1 on GitHub · 2026-11-24 22:49 UTC · original
On the
lds_atomics_and_barrier/split-w640x8007000E(RTX 5070 Ti reports above): it fails 3 of 3 here too, on an RTX 5060 Ti (NVIDIA 621.24, DXC 1.9.2602.17, debug, this PR's test file atb20b957onmain689f2db). The trigger is the LDS subtract: the driver refuses a pipeline with a groupshared atomic add of a negated, non-constant value, also in a few lines of plain HLSL compiled by DXC. Withds_sub_u32translated as a compare-exchange loop, the test passes 3 of 3 here. Details and the patch: #1679 and #1679So it is not something this PR's test does wrong.
direct_dxil_mimg_image_ops_and_atomics_parityalso fails here, with and without that patch (wave32: lane 0 v7, 0 against 1.0), as on the 5070 Ti with 32.0.16.2135. I have not looked into that one.Not tested: the whole suite of this PR, another driver or GPU.
Run and written with Claude Code (Claude Opus 5.5).
@vitor127wt on GitHub · 2026-11-24 22:56 UTC · original
All three new parity tests passed on an RTX 5070 Ti under Proton at the exact PR head
b20b9577231644606e0bf2b65eb7b50e3970b32a.direct_dxil_cross_lane_and_dpp_paritydirect_dxil_lds_atomics_and_barrier_paritydirect_dxil_mimg_image_ops_and_atomics_parity3 passed, 0 failed, 0 ignored, 0 skipped. Each run filtered out the other two tests. The adapter exposed 32-lane subgroups, so these tests covered wave32 and split wave64. This adds a Proton data point for the Windows reports above.
RTX 5070 Ti (16 GB, driver 620.73.04), Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental
experimental-11.0-20261112-x86_64, vkd3d-protonec20719452e9, dxil-spirv7c048638ab59, Rust 1.100.0, LLVM-MinGW 20261117, DXC 1.9.2609.5. One fresh Wine prefix per test.AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.
@DavidM1911 on GitHub · 2026-11-24 23:24 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@futurepro62 on GitHub · 2026-11-24 23:28 UTC · original
Follow-up to my report above: I updated the driver on the same RTX 5070 Ti, and the
IMAGE_LOADalpha mismatch now happens here too. Same card, head, DXC and build. Only the driver changed.direct_dxil_mimg_image_ops_and_atomics_paritylds_atomics_and_barrier/split-w640x8007000E7 of 7mimg_ops_and_atomics/wave32: lane 0 v7, left0, right10653532160x8007000E3 of 3Tested
b20b957.cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1, alone on the machine: 3 runs of the whole file, then 5 runs of the mimg test alone.XCL_ADAPTER=radeon) passes all 3 tests.So the mimg mismatch follows the newer NVIDIA driver, not DXC or this machine. It matches @Ctrl-Alt-Haze (5070 Ti, 621.35) and @PHeitor1 (5060 Ti, 621.24), while @LocranKing's Ampere card on 621.01 passes. It may be specific to the 621.2x+ drivers on Blackwell, but I have not tested any driver between 616.64 and 621.40. The
split-w640x8007000Edoes not depend on the driver: it happens on both versions here, which fits @PHeitor1's finding that the trigger is the LDS subtract.Not tested
AI use
@PHeitor1 on GitHub · 2026-11-25 00:18 UTC · original
@futurepro62 thanks, changing only the driver is the clean comparison. I looked into both failures; they have different causes.
direct_dxil_mimg_image_ops_and_atomics_parity: the test's T# holds an invalid descriptor index.tsharpputs0x2000_0000 | (idx << 4)in word 0, and both translators use that word as the index into the descriptor heap (ResourceDescriptorHeap[s16]). The repo's own tests put the plain index there. An index that far out of range is undefined, so it can work on one driver and not on another, which fits what you saw.b20b957onmain20cf130): 3 of 3 runs pass, against 0 of 3 as it is.The second part is the layout of
tsharpinrecomp/tests.rs(format in word 1); with only word 0 changed it also passes 3 of 3. @thiagocalile, that is yours to decide.direct_dxil_lds_atomics_and_barrier_parity(0x8007000E): #1919 fixes this one. It is the LDS subtract. Ata081eb5this test passes 3 of 3 here; onmainit fails 3 of 3.So my earlier comment, which left the image failure as a separate thing, was right that it is not the same cause, but it is in the test and not in the translator.
Not tested: another driver or GPU with the changed line, a driver that passes as it is.
Run and written with Claude Code (Claude Opus 5.5).
@thiagocalile on GitHub · 2026-11-25 00:37 UTC · original
Thanks @PHeitor1, @futurepro62, @Ctrl-Alt-Haze, and @fromthemoonx for tracking down both issues so cleanly!
Pushed
2e2ee55fixingtsharp()to matchrecomp/tests.rs([idx, dfmt << 20, 0, rtype << 28, 0, 0, 0, 0]) and setting the samplerS#word 0 to0instead of0x3000_0000. Re-verified on AMD Radeon RX 6600 (XCL_ADAPTER=radeon cargo test -p xcl --test gpu_dxil_parity -- --nocapture: 3 passed, 0 failed in0.42s). And awesome to see the LDS test caught the Blackwell subtract issue for #1919!AI use: Antigravity (Gemini 4 Neon) applied the 2-line fix, ran the RX 6600 test, and drafted this reply; I reviewed it before posting.
@fromthemoonx on GitHub · 2026-11-24 21:22 UTC · original · edited 2026-11-25 00:49 UTC
Rerun on the new head
2e2ee55(T#/S# fix): still passes here.cargo test --workspace --no-fail-fast -- --test-threads=4: 892 passed, 0 failed, 42 ignored. Merged onto main80f4819(no conflict): 996 passed, 0 failed, 45 ignored.gpu_dxil_parity10 of 10. Theumin→umaxbug check below still fails onlydirect_dxil_lds_atomics_and_barrier_parity(split-w64: lane 0 v31,4294967295vs9). Same RTX 3060 and driver (610.88), DXC 1.9.2602.17, debug. The report below is forb20b957.Passes on an RTX 3060 (wave32 and split wave64), 10 of 10, unlike the RTX 5070 Ti run above. The new LDS test also catches a bug that no existing test does.
The two setups differ in DXC (1.9.2602.17 here, 1.8.2502.11 above) and driver (32.0.16.1088 here, 32.0.16.2135 above), so the
IMAGE_LOADalpha (0vs1.0) and the0x8007000Emay depend on one of those. Update: DXC 1.8 is not the cause of either failure. With Microsoft's DXC 1.8.2502 release (XCL_DXC_DIR; XCL logsDXC: dxcompiler 1.8.2502.8 (b4711839), dxil 1.8.2502.8),cargo test -p xcl --test gpu_dxil_parityon this head passes 3 of 3 here. Together with the later reports, the LDS0x8007000Efollows the GPU (RTX 5070 Ti / 5060 Ti) and theIMAGE_LOADalpha follows the newer drivers (621.x).Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debugb20b9577231644606e0bf2b65eb7b50e3970b32a:cargo test -p xcl --test gpu_dxil_parity: 3 passed. Thesplit-w64andwave32configurations run here;native-w64is left out on this card without aSKIPPEDline. 10 runs: 10 of 10 passed.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 892 passed, 0 failed, 42 ignored. Merged onto currentmaine9e94ce(no conflict): 895 passed, 0 failed, 42 ignored.uminlowered asumaxin the direct translator (lower_mem.rs,"umin" | "min_u32"),direct_dxil_lds_atomics_and_barrier_parityfails atsplit-w64: lane 0 v31(4294967295vs9). The other two parity tests still pass, and so do all 277gpu::dxil+gpu::recomplib tests. So this test is the only one that catches it.Not tested
AI use
@futurepro62 on GitHub · 2026-11-25 00:50 UTC · original
@PHeitor1 @thiagocalile confirmed here:
2e2ee55fixes the mimg failure on the driver that broke it.direct_dxil_mimg_image_ops_and_atomics_paritypasses 3 of 3 at2e2ee55. Atb20b957on the same driver it failed 8 of 8 (lane 0v7= 0 instead of 1.0).direct_dxil_lds_atomics_and_barrier_paritystill fails 3 of 3 withCreateComputePipelineState0x8007000Eon split-w64, as expected until #1919.2e2ee55with #1919 (a081eb5) merged in locally: all 3 tests pass, 3 of 3 runs on the same 5070 Ti / 621.40, so #1919 fixes the LDS split-w640x8007000Ehere too.XCL_ADAPTER=radeon): all 3 tests pass.Tested:
cargo build --workspace, thencargo test -p xcl --test gpu_dxil_parity -- --test-threads=1, 3 runs on NVIDIA and 1 on AMD at2e2ee55, and 3 runs on NVIDIA with #1919 merged. Windows 11, Rust 1.100.0 MSVC, debug.Not tested: the full suite at this head, other NVIDIA drivers.
AI-assisted (Claude Code).
@JJAutoCompare on GitHub · 2026-11-25 01:10 UTC · original
Tested
2e2ee557dfeb6de0f1d3c7467b16216f61564b0e, clean checkout. Intel Arc A770 driver32.0.101.9175, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation build26200.9974, Rust1.100.0(0ef1bc386,x86_64-pc-windows-msvc), debug. The run loaded DXC and DXIL1.9.2609.5(DXC01b62ad4).XCL_ADAPTER=A770,XCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64,CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0, isolated Cargo target and temp directories.cargo test -p xcl --test gpu_dxil_parity --no-runbuilt the integration test. The hardware run was& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test -p xcl --test gpu_dxil_parity -- --nocapture --test-threads=1 }.SKIPPEDlines in 4.78 s.direct_dxil_cross_lane_and_dpp_parity,direct_dxil_lds_atomics_and_barrier_parity, anddirect_dxil_mimg_image_ops_and_atomics_parityeach ran direct DXIL and HLSL + DXC on the Arc forwave32andsplit-w64. The D3D12 capability query reported a maximum wave size of 32 lanes, so the harness omittednative-w64in all three tests.Not tested
AI use
gpt-6.2-sol) ran the tests and drafted this report from the output.@raylitebull on GitHub · 2026-11-25 02:01 UTC · original
CIworkflow approved for2e2ee55(crates/xcl/tests/gpu_dxil_parity.rs).Diff is clean and verified across AMD (RX 6600, RDNA2 iGPU), NVIDIA (RTX 3060, RTX 5070 Ti with
#1919), and Intel Arc A770. Hold merge until#1919(ds_sub_u32Blackwell workaround) lands andBuild and testfinishes green on2e2ee55, sodirect_dxil_lds_atomics_and_barrier_parity(split-w64) passes cleanly on RTX 5060/5070 Ti.@SzczepanGrela on GitHub · 2026-11-25 04:41 UTC · original
Linux/RADV + Wine GPU test report on PR
#1778head2e2ee55(clean local merged347e23ontoorigin/maincbc296a,rustc 1.97.1, zero compiler warnings).Tested
7.3.0-5-cachyos), AMD Radeon RX 9070 (RADV GFX1201, device0x7550, native wave64, Mesa26.2.5-arch3.1, Vulkan1.4.354),GE-Proton11-12(wine-11.0 (Staging),vkd3d-proton v3.1-1-g8293130eb), DXC1.9.2602.17(21d28f72). Cross-builtx86_64-pc-windows-gnurelease (--test gpu_dxil_parity, 0.73 s) withXCL_REQUIRE_GPU=wave64 XCL_NETWORK=0.gpu_dxil_parity --test-threads=1 --nocapture(default env: 0.44 s;XCL_SPLIT_WAVE64=1: 0.35 s): 2 passed, 1 failed, 0 ignored:direct_dxil_lds_atomics_and_barrier_parity: passed (0.18 s solo) acrossnative-w64,split-w64, andwave32.direct_dxil_mimg_image_ops_and_atomics_parity: passed (0.21 s solo) acrossnative-w64,split-w64, andwave32.direct_dxil_cross_lane_and_dpp_parity: failed (0.17 s solo).native-w64passed, thensplit-w64panicked inrunner::run_with(&hlsl, ...)atcrates/xcl/tests/gpu_dxil_parity.rs:84:83(cross_lane_and_dpp/split-w64: run hlsl: split wave64: the halves ended with different SGPRs (lower / upper): s11: 0x0 / 0x10002525, s12: 0x10000404 / 0x0), and never reachedwave32.origin/maincbc296a: underXCL_SPLIT_WAVE64=1,gpu::recomp::tests::gpu_already fails 7 tests (run 1) withsplit wave64: the halves ended with different SGPRs(gpu_divergence_through_exec,gpu_f64_class_compare,gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts,gpu_split_wave64_cross_half_operations,gpu_split_wave64_masks_read_whole_after_partial_writes,gpu_split_wave64_reduction_tails,gpu_valu_16_and_64_bit), and run 2 also had 7 SGPR-mismatch failures withgpu_grouped_loads_bounds_and_inactive_lanesfailing in place ofgpu_split_wave64_masks_read_whole_after_partial_writes.crates/xcl/src/gpu/recomp/runner.rs:591-602,766,1568andcrates/xcl/src/gpu/recomp/emit.rs:4755):split_halves_agreeskips the lower/upper SGPR comparison unlessKERNEL_SPLIT_MAGICis present in the output buffer; only the HLSL emitter (emit.rs:4755) writesKERNEL_SPLIT_MAGIC, whiledirect.dxildoes not emit it.Not tested
direct_dxil_cross_lane_and_dpp_parity(split-w64),direct.dxil-vs-hlslparity assertions (gpu_dxil_parity.rs:85-95) andwave32mode were not reached afterrun_with(&hlsl, ...)panicked at line84.--libunit tests and other integration binaries outsidegpu_dxil_parity(on local merged347e23), retail game files, andscripts/smoke.ps1(no retail title files locally).AI use
@SlopTart on GitHub · 2026-11-25 05:16 UTC · original
RDNA3 reproduction of the split-wave64 parity failure. Second AMD generation covered, and the failing SGPR values are byte-identical to the RX 9070 report.
Rig: RX 7900 XT (RDNA3, RADV NAVI31, Mesa 26.2.5) under Proton Experimental (wine-11.0) + the xcl-pinned vkd3d-proton 3.1 build,
VKD3D_CONFIG=ignore_shared_fence. Same Wine stack recipe as the RX 9070 report. Pipeline cache removed before every run. Tree: maincbc296ab+ this PR's head2e2ee55merged.Parity suite: 2 pass / 1 fail.
direct_dxil_cross_lane_and_dpp_parityfails the split-w64 leg with exactly the values from the RX 9070 report:Identical corruption pattern on two different AMD generations. Not card-specific, not driver-version-specific, not RDNA4-specific.
--libGPU suite on this tree, native mode: 132 passed / 3 failed. All three fail 3/3 solo re-runs, so they are deterministic, and nobody has reported them yet:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contractionhle::d3d12x::device_x::tests::gpu_depth_buffer_created_for_unordered_access_is_placed--libGPU suite,XCL_SPLIT_WAVE64=1: 124 passed / 11 failed. Three re-runs classify them:gpu_divergence_through_exec,gpu_format_stores_atomics_global_lds,gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts,gpu_split_wave64_cross_half_operations,gpu_split_wave64_masks_read_whole_after_partial_writes,gpu_split_wave64_local_and_exchanged_masks_in_diverging_waves,gpu_split_wave64_waves_diverge,gpu_split_wave64_reduction_tails,gpu_valu_16_and_64_bitgpu_f64_class_compare(2/3),gpu_grouped_loads_bounds_and_inactive_lanes(1/3), mirroring the swap seen in the RX 9070 baseline runsTwo of the deterministic set (
gpu_format_stores_atomics_global_lds,gpu_split_wave64_waves_diverge) were not in the earlier baseline count, so RDNA3 sees at least that wide.This PR adds only
crates/xcl/tests/gpu_dxil_parity.rs(tests-only), so the--libfailures above are current-main behavior on this stack, not introduced by it.Counts only, no game data.
AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@iGoldenNinja on GitHub · 2026-11-25 05:39 UTC · original
Independent RTX 5080 result for
2e2ee557dfeb6de0f1d3c7467b16216f61564b0e. Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X, NVIDIA 617.14, Rust 1.98.1 MSVC, DXC/DXIL 1.9.2609.5, release,XCL_REQUIRE_GPU=1 XCL_ADAPTER=5080.cargo test --locked --release -p xcl --test gpu_dxil_parity -- --nocapture --test-threads=1gave 2 passed, 1 failed, 0 ignored or skipped. Cross-lane/DPP and MIMG passed. The clean LDS fixture reproducedCreateComputePipelineState0x8007000Ein a fresh process. Running both backend calls before asserting showed the same failure for HLSL + DXC and direct DXIL, independently in both split wave64 and wave32.Applying only the two lowering-file changes from #1919
a081eb52220dbc746b63b9e1eec04ba7481ef59fto this PR's tree gave 3 passed, 0 failed or skipped, across both backends and both modes. The LDS fixture also passed in 3/3 additional fresh processes.dxc -dumpbinshowed one 8192-dword groupshared array for each LDS shader before and after. This was a synthetic test of the isolated change on this PR's tree.Test matrix and reproduction notes
OpenAI Codex (GPT-6) ran the tests, added local backend logging, and drafted this report.
@DavidM1911 on GitHub · 2026-11-26 06:17 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.