Recompiler tests: cover v_cubeid/sc/tc/ma_f32 and cubemap sample roundtrip on the GPU #1101
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!1101
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1101"
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 11:35 UTC · original
certified-retart:tests/gpu-cube-coords→main· +148 −0 · 1 files · 1 commits · openWhat is in it
Adds two GPU recompiler tests in
crates/xcl/src/gpu/recomp/tests.rscovering the RDNA2 cubemap coordinate instructions (v_cubeid_f32,v_cubesc_f32,v_cubetc_f32,v_cubema_f32), which previously had no non-retail test coverage:gpu_cube_coords: verifies all four instructions against the AMD RDNA2 ISA specification in both wave64 and wave32 across all 6 faces with asymmetric magnitudes/signs, all tie-breaking boundaries (|z| >= |x|, |y|, then|y| >= |x|, elsex), signed-zero inputs, and VOP3NEG,ABS,OMOD(/2), andCLAMPmodifiers.gpu_cube_coords_sample_roundtrip: runs the full RDNA2 cubemap projection sequence (v_cubeid/sc/tc/ma_f32->v_rcp_f32(|ma|)->v_fma_f32(..., 1.5)->image_sample_lz) against a 2x2x6TexDim::Cubetexture with 24 unique[face, tx, ty, 1.0]texels across all 24 off-center face/quadrant directions at multiple scales, verifying thatcube_id/cube_sc/cube_tc/cube_maandcube_diragree on every face and both S/T orientations on D3D12 hardware.Tests-only change (
crates/xcl/src/gpu/recomp/tests.rs, +148 lines).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), debug build, Agility SDK v614 (XCL_D3D12_DIR).cargo test -p xcl --lib gpu_cube -- --nocapturewithXCL_REQUIRE_GPU=wave64:32.0.16.1074,XCL_ADAPTER=0, split wave64 + wave32): 3 passed, 0 failed.gfx1036(driver32.0.21030.2001,XCL_ADAPTER=1, native wave64 + wave32): 3 passed, 0 failed.XCL_ADAPTER=warp: skips cleanly viagpu_ready()(WARP lacks SM 6.6).cargo test --workspace -- --test-threads=4on RTX 5070: 742 passed, 0 failed, 41 ignored.Not tested
scripts/smoke.ps1; no retail game files on this machine, tests-only change).XCL_D3D12_DEBUG=1; Windows Graphics Tools optional feature not installed on this host).AI use
Written and audited with Antigravity (
gemini-4-neonorchestrating and reviewinggemini-4-hydrogen), verified on local NVIDIA RTX 5070 and AMD RDNA2gfx1036hardware.@Aniseto on GitHub · 2026-11-24 11:42 UTC · original
Ran the new cubemap tests on an NVIDIA Blackwell part at
8c11748: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.
The two new tests (
gpu_cube_coords,gpu_cube_coords_sample_roundtrip) and the existinggpu_cube_array_slicespass here in the wave32 + split-wave64 form (no native wave64 on this adapter). This adds a second Blackwell part and driver line next to the author's RTX 5070 run.Not tested: native wave64, RDNA2/RDNA4 and Intel GPUs, Wine, release profile, optional
XCL_SAMPLE_*retail-data tests.AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified.
@thehollowedone on GitHub · 2026-11-24 11:42 UTC · original
D3D12 debug-layer check at 8c11748 on Windows 11, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, DXC 1.8.2502.11. The offline workspace build and all three stock
gpu_cubetests passed with zero skips.I repeated them after enabling Graphics Tools before device creation in the scratch shader runner. The adapter reported native wave32 and no native wave64, so wave64 used XCL’s split path. All four kernel dispatches left the D3D12 info queue empty. The two new tests checked cubemap coordinates and read back samples from all six faces.
AI-assisted. Codex (GPT-6) enabled debug validation in the scratch runner and ran the tests.
@mynzjerko on GitHub · 2026-11-24 11:53 UTC · original
Tested on native Windows + AMD RDNA4 (both
wave64andwave32paths): both new cubemap tests and the full workspace suite passed with 0 skips.Tested
8c11748063c9f75f483356745bb128ada7f123d632.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300,rustc 1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2602.17, debug buildcargo build --workspace: okcargo test -p xcl --lib -- gpu_cube_coords gpu_cube_coords_sample_roundtrip --nocapture --test-threads=1: 2 passed, 0 failed, 0 ignored (0 SKIPPED)cargo test --workspace -- --test-threads=4: 743 passed, 0 failed, 41 ignored (xcl --lib: 700 passed, 0 failed, 21 ignored;SKIPPEDGPU tests: 0)Not tested
scripts/smoke.ps1)AI use
@DavidM1911 on GitHub · 2026-11-25 08:21 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.