Repository navigation
Conversation
Owner
Author
|
Upstream PR xcl-dev#1101 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What 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.Mirror of xcl-dev#1101 (auto-synced, do not edit).