Recompiler tests: GPU coverage for v_permlane16_b32 and v_permlanex16_b32 FI/BC flags #971
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!971
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-971"
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?
@certified-retart on GitHub · 2026-11-24 09:43 UTC · original
certified-retart:tests/permlane16-gpu→main· +82 −0 · 1 files · 1 commits · openAdds GPU execution coverage for
v_permlane16_b32(previously untested on GPU) andv_permlanex16_b32across all four(FI, BC)(OP_SEL[1:0]) flag combinations and partialEXECmasks, verified against RDNA2 (gfx1036) hardware in native wave64. Test-only: nothing outsidecrates/xcl/src/gpu/recomp/tests.rschanges.What is in it
crates/xcl/src/gpu/recomp/tests.rs(gpu_permlane16_and_permlanex16_fi_bc_and_exec):EXEC = 0x5555_5555/0x5555_5555_5555_5555in wave32, native wave64 (on wave64-capable GPUs), and split wave64.sel[i] = 15 - i, reading inactive odd lanes) tests all four(FI, BC)combinations (OP_SEL = 0, 1, 2, 3) for bothv_permlane16_b32andv_permlanex16_b32:FI=0, BC=0preservesvdst;FI=0, BC=1writes0;FI=1, BC=0andFI=1, BC=1fetch the inactive source lane (FIoverridesBC).sel[i] = (i + 2) & 15, reading active even lanes) checks same-row (v_permlane16_b32) vs swapped-row (v_permlanex16_b32) reads within each 32-lane half across bothSRC1(lanes0..7) andSRC2(lanes8..15).v10..=v19) untouched.Hardware reference & negative control
(instruction, op_sel)cases (0x377/0x378,op_sel = 0..3) directly on AMD Radeon(TM) Graphics (gfx1036, Ryzen 7 9800X3D iGPU, driver32.0.21030.2001, AMD OpenCL2.1 AMD-APP (3652.0)with-cl-std=CL2.0 -Wf,-mwavefrontsize64) underEXEC = 0x5555_5555_5555_5555: the translated expectations match hardware on all 64 lanes.emit.rs, reverted): swappingfiandboundinemit.rsfailed the new test immediately (wave32 split=false lane 0: permlane16 FI=1 BC=0: left: 0, right: 1015).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2602.17, debug build, Agility SDK v620 (XCL_D3D12_DIR).gfx1036RDNA2 iGPU, driver32.0.21030.2001, native wave64,XCL_ADAPTER=1):cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1 --nocapture: 118 passed, 0 failed, 17 ignored; 0SKIPPED(gpu_permlane16_and_permlanex16_fi_bc_and_execran wave32, native wave64, and split wave64).32.0.16.1074, wave32,XCL_ADAPTER=0):cargo test --workspace -- --test-threads=1 --nocapture: 717 passed, 0 failed, 41 ignored (gpu_permlane16_and_permlanex16_fi_bc_and_execran wave32 and split wave64).SKIPPEDon RTX 5070 / this host:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),test_title_draws_with_a_root_signature_under_the_debug_layer(no d3d12SDKLayers.dll),uploads_start_from_each_subresources_state(no D3D12 debug).Regression run
Not needed: this PR modifies only
crates/xcl/src/gpu/recomp/tests.rsand does not change the runtime.Not tested
AI use
gemini-4-neon) wrote and ran the RDNA2 OpenCL probe, wrote the GPU test and this description, and ran the test suites and negative control on both GPUs named above.@Aniseto on GitHub · 2026-11-24 10:16 UTC · original · edited 2026-11-24 10:21 UTC
Ran the new test on an NVIDIA Blackwell part at
7cc5661(wave32 only, so the wave32 and split-wave64 forms; no native wave64 here).Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
All four (FI, BC) modes under the partial EXEC mask match the expected RDNA2 values here. This is a second Blackwell part and driver line beyond the author's RTX 5070 run, on Windows 11 build 26200.
Not tested: native wave64, pixel shaders / helper lanes, Intel GPUs, Wine, release profile, retail titles.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the test binary, wrote this report; the worktree was not modified.
@DavidM1911 on GitHub · 2026-11-24 12:24 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
cargo test -p xcl --lib permlane: 1 passed, 0 failed — the new GPU testgpu_permlane16_and_permlanex16_fi_bc_and_execcovers the FI/BC flag combinations ofv_permlane16_b32/v_permlanex16_b32on real hardware.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@luckyteagirl on GitHub · 2026-11-25 03:27 UTC · original
Tested
7cc566135b1f70cb6f04a929835ed871a3478177on Windows 11 build 26200, AMD Radeon RX 6800M (driver30.0.13002.13003), Ryzen 9 5980HX, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800MandXCL_REQUIRE_GPU=1were set.cargo test --locked -p xcl --lib -j 2 gpu::recomp::tests::gpu_permlane16_and_permlanex16_fi_bc_and_exec -- --exact --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored, no explicit skip. Repeated withXCL_DIRECT_DXIL=0and=1; both invocations passed.translate(...), compilest.hlslwith DXC, then runs that shader on the GPU. Therefore the environment change did not exercise the direct DXIL translator; these are two runs of the HLSL route. The test covers FI/BC combinations, partial EXEC, active and inactive source lanes, and wave32 plus split wave64. Native wave64 is conditional on adapter support and was not separately instrumented in this run.Not tested
AI use
OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact test and logs, ran both GPU invocations, and drafted this report.
@JJAutoCompare on GitHub · 2026-11-25 03:51 UTC · original
Arc A770 verification for xcl-dev/xcl PR #971
Tested
7cc566135b1f70cb6f04a929835ed871a3478177before and after the run. The worktree was clean and detached at that SHA both times. The PR description and discussion contained AMD and NVIDIA results and no equivalent Arc report. Read upstreamAGENTS.mdandCONTRIBUTING.mdatcbc296ab65a2661a61e3e2da109134bcd5319f60.26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver32.0.101.9175. Rust1.100.0(0ef1bc386,x86_64-pc-windows-msvc), Cargo1.100.0, unoptimized test profile. The test logged DXC and DXIL1.9.2609.5.cargo test --locked -p xcl --lib --no-runsucceeded outside the Arc mutex.CARGO_TARGET_DIR=L:/XclTooling/pr1778-2e2ee55-20261125-020159/target,CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0.TEMPandTMPpointed to thetempdirectory beside this report.XCL_ADAPTER=A770andXCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64were set.SKIPPEDlines, 696 filtered out. Test runner time was 0.27 s. The wrapper returned exit 0 and logged mutex release.cs_6_6with DXC, and checked 960 VGPR values across wave32 and split wave64. PartialEXEC(0x5555_5555/0x5555_5555_5555_5555) enabled even lanes and left all ten destination registers (v10..=v19) at their sentinels on odd lanes.15 - i, active lanes addressed inactive sources for bothv_permlane16_b32andv_permlanex16_b32.(FI, BC) = (0, 0)preserved the destination,(1, 0)fetched the inactive source,(0, 1)wrote zero, and(1, 1)fetched the inactive source. Selector(i + 2) & 15exercised active source reads with(0, 0)through both selector words (SRC1andSRC2), checking same-row reads and swapped-row reads within each 32-lane half.WaveLaneCountMin=8andWaveLaneCountMax=32(L:/XclTooling/pr1577/wave-capability-20261125-033726.log).Not tested
Native wave64, direct DXIL translation, pixel-shader helper lanes, other adapters, release builds, the wider test suite, and retail-title smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) verified the revision, ran the checked-in fixture, and wrote this report from the logs.Separate build and GPU stdout/stderr logs and the GPU exit record are in this run directory.
@DavidM1911 on GitHub · 2026-11-26 03:23 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.