Recompiler tests: GPU checks for VOP3 bit-field, perm, align and min3/max3/med3 #445
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!445
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-445"
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?
@AC-Storm-YT on GitHub · 2026-11-24 00:22 UTC · original
AC-Storm-YT:recomp-vop3-int-tests→main· +88 −0 · 1 files · 1 commits · openEleven 32-bit VOP3 integer instructions the recompiler translates had no test:
v_bfi_b32,v_bfm_b32,v_perm_b32,v_alignbit_b32,v_alignbyte_b32andv_min3/v_max3/v_med3foru32andi32. This adds one GPU test for them. Test only: nothing outsidetests.rschanges.What is in it
gpu_vop3_integer_bit_and_minmax3(crates/xcl/src/gpu/recomp/tests.rs): one kernel with all eleven instructions, run as wave64 and wave32 (gpu_waves), 32 dispatches of operand triples from a fixed LCG – edge values (0, 1, 31, 32, 33,0x7FFFFFFF,0x80000000,0xFFFFFFFF, everyv_perm_b32selector kind: bytes 0..7, the sign selectors 8..11, 12 and 13+) mixed with arbitrary words. Each result is compared bit for bit with the instruction's RDNA2 definition computed on the CPU (not with the emitted HLSL).Tested
stable-x86_64-pc-windows-msvc, debug; DXC 1.8.2502.11cargo test --workspace -- --test-threads=4on this branch's head: 677 passed, 0 failed, 41 ignored. No SKIPPED tests.emit.rsby hand (and reverted), it reported wrong results for that instruction –v_med3_i32compared unsigned (1407 results),v_perm_b32selector 8 readings0(37),v_alignbyte_b32shifting by 4 bits a byte (1215),v_bfm_b32with the wrong zero-width case (488),v_max3_u32ignoringsrc2(629).Regression run
Not needed: the PR changes only
crates/xcl/src/gpu/recomp/tests.rs.Not tested
AI use
@PHeitor1 on GitHub · 2026-11-24 00:44 UTC · original
Tested
77eab20merged ontomain2997c9a.RTX 5060 Ti 8 GB (Blackwell, 32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300 (native, Graphics Tools + XGameRuntime installed, so the debug-layer tests run), rustc 1.100.0 MSVC, debug,
cargo test --workspace --no-fail-fast -- --test-threads=4, noXCL_SAMPLE_*.Pass: 677 passed, 0 failed, 41 ignored. SKIPPED: only the 2
no wave64tests (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware).gpu_vop3_integer_bit_and_minmax3runs on the GPU and passes. Build clean.Run and written with Claude Code (Claude Opus 5.5).
@CryingLaughing on GitHub · 2026-11-24 01:01 UTC · original
The exact PR head
77eab20adfdb2472c77a747db16c3e9e6e7fabb4passed on an RTX 4080. This adds Ada wave32 coverage alongside the RDNA4 and Blackwell runs above.Tested
XCL_ADAPTER=4080, synthetic fixtures, allXCL_SAMPLE_*variables unset.cargo test -p xcl --lib --locked -j 4 gpu_vop3_integer_bit_and_minmax3 -- --show-outputpassed 1/1 on native wave32. The fixture checks 11 instructions across 32 waves of 32 lane inputs against Rust results.cargo build --workspace --locked -j 4passed.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 677 passed, 0 failed, 41 ignored. That includes four explicit capability skips and opt-in game-data tests that returned early.SKIPPEDfor native wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.SKIPPEDfor D3D12 debug-layer availability:test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state.Not tested
AI use
@13hourstilliland on GitHub · 2026-11-24 01:35 UTC · original
Adding an Ampere 8 GB (RTX 3070, 32-lane waves) run on the exact PR head
77eab20.Tested
77eab20adfdb2472c77a747db16c3e9e6e7fabb4(PR #445 head), clean worktreestable-x86_64-pc-windows-gnu, not MSVC); DXC 1.9.2609.5 (01b62ad4) viaXCL_DXC_DIR; debug build; noXCL_SAMPLE_*setcargo test -p xcl --lib -- gpu_vop3_integer_bit_and_minmax3 --show-outputcargo test --workspace --no-fail-fast -- --test-threads=4 --show-output(interactive desktop session)xcllib: 637 passed, 0 failed, 21 ignored;e2e: 3/0)SKIPPED(4, not coverage):no wave64(2):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardwareno D3D12 debug layer(2):test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_stateNot tested
scripts/smoke.ps1, D3D12 debug-layer testsAI use
gemini-4-neon: ran the commands and wrote this report from the logs; the human reviewed it.@DavidM1911 on GitHub · 2026-11-25 14:15 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.