Tests: check packed u8, i16/u16, f16 RTZ, and norm f32 conversions on GPU #1556
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!1556
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1556"
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 17:39 UTC · original
thiagocalile:tests-recomp-cvt-pk-conversions→main· +271 −0 · 1 files · 1 commits · openAdd GPU recompiler tests covering
v_cvt_pk_u8_f32,v_cvt_pk_i16_i32,v_cvt_pk_u16_u32,v_cvt_pkrtz_f16_f32, andv_cvt_pknorm_u16_f32/v_cvt_pknorm_i16_f32on both wave64 and wave32.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_cvt_pk_u8_i16_u16_edgescoversv_cvt_pk_u8_f32(byte slots 0..3 + wrapped indices, untouched-byte preservation, round-to-nearest-even ties, saturation, subnormals, ±Inf, ±qNaN,ABS/NEG/-ABSmodifiers, 4-byte chaining, EXEC masking),v_cvt_pk_i16_i32(signed 32→16 clamping boundaries, scalar source, EXEC masking), andv_cvt_pk_u16_u32(unsigned 32→16 clamping boundaries, scalar source, EXEC masking)crates/xcl/src/gpu/recomp/tests.rs:gpu_cvt_pkrtz_f16_and_pknorm_f32_edgescoversv_cvt_pkrtz_f16_f32(VOP2 + VOP3ABS/NEG, RTZ vs RNE ties, finite overflow clamping to ±65504 rather than ±Inf, ±Inf, ±0.0, subnormals, ±qNaN, EXEC masking) andv_cvt_pknorm_u16_f32/v_cvt_pknorm_i16_f32(saturation, rounding ties, ±Inf, ±qNaN,NEG/ABSmodifiers, EXEC masking)Tested
XCL_ADAPTER=radeon, native wave64 + wave32), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (26200), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11, debug buildXCL_ADAPTER=radeon cargo test -p xcl --lib gpu_cvt_pk_u8_i16_u16_edges -- --nocapture: 1 passed, 0 failed, 0 ignoredXCL_ADAPTER=radeon cargo test -p xcl --lib gpu_cvt_pkrtz_f16_and_pknorm_f32_edges -- --nocapture: 1 passed, 0 failed, 0 ignoredXCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 775 passed, 3 failed, 41 ignored (the 3 failures are pre-existing onmain9e3831eon this RX 6600:placed_title_textures_share_vram_and_preserve_pixels+ 2 mutex-poison cascades, covered by #1028). 1 GPU test skipped inside the passing count:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Not tested
d3d12SDKLayers.dll), Linux / Wine.AI use
@DarkPanda69 on GitHub · 2026-11-24 18:11 UTC · original
NVIDIA run, which this PR lists as not tested (it was run on an RX 6600), plus an RDNA4 one.
Tested: pass, head
3eced4capplied on its basemain9e3831e, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --lib -- gpu::recomp --test-threads=4:gpu_cvt_pk_u8_i16_u16_edgesandgpu_cvt_pkrtz_f16_and_pknorm_f32_edgesok.Not tested: Intel, WARP, the D3D12 debug layer; the whole workspace suite.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@Daydream3r on GitHub · 2026-11-24 18:13 UTC · original
Independent NVIDIA verification of exact head
3eced4cb07, tested on 2026-11-24 without rebasing, merging or source edits.Tested
stable-x86_64-pc-windows-msvc), MSVC Build Tools 2022 17.14.37906.3, Windows SDK 10.0.26100.0; DXC/DXIL 1.9.2609.5 from the official DirectXShaderCompiler release.XCL_ADAPTER=RTX 5070 Ti,XCL_DXC_DIRset to this DXC'sbin/x64.cargo build --workspace --locked: exit 0.XCL_REQUIRE_GPU=mesh,cargo test --locked -p xcl --lib gpu_cvt_pk -- --nocapture --test-threads=1: 2 passed, 0 failed, 0 ignored, no skips, exit 0. Bothgpu_cvt_pk_u8_i16_u16_edgesandgpu_cvt_pkrtz_f16_and_pknorm_f32_edgesexecuted and passed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 778 passed, 0 failed, 41 ignored, exit 0.main9e3831e1f5: 776 passed, 0 failed, 41 ignored, exit 0. This is also the PR's merge-base.test_title_runs_and_game_folder_is_untouchedpassed on both revisions.Not tested / skips
The two new tests select wave32 only through
gpu_waves()on this NVIDIA adapter. Their native-wave64 path was not exercised.Each full suite contains the same three explicit GPU skips inside its passing count:
gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windowsAll
XCL_SAMPLE_*inputs listed byscripts/test.ps1were unset, so game-data-dependent successful returns are not sample coverage. No retail title/smoke run, AMD/Intel/WARP, D3D12 debug-layer run, or PR release build. This PR adds tests only; this report makes no retail regression or merge-approval claim.XCL_REQUIRE_GPU=meshmade no-GPU/no-DXC skips fail for the targeted command; it was unset for the full suites.AI use
Codex desktop, GPT-6 inspected the diff, built and ran the commands on this PC, and drafted this report from the logs. No source changes.
@DavidM1911 on GitHub · 2026-11-24 19:32 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:54 UTC · original
Tested
Clean detached PR head
3eced4cb07635a71151e2d991b930bb592ada46c. STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5, unoptimized test profile.Prebuilt outside the lock with
cargo +stable-x86_64-pc-windows-msvc test --locked -p xcl --lib --no-run --message-format=json(exit 0). The Cargo-reported test executable ran underInvoke-ArcTest.ps1 -TestwithXCL_ADAPTER=A770,XCL_DIRECT_DXIL=0, andXCL_REQUIRE_GPU=wave64. The wrapper and both fixtures exited 0.2 passed, 0 failed, 0 ignored, 0 skipped. Each filter ran one HLSL/DXC fixture and excluded 749 tests. The first passed 384 readback assertions across 32 lanes (clamps, rounding, byte selection, source modifiers, and EXEC masking). The second passed 288 across 32 lanes (FP16 round toward zero, signed zero, subnormals, Inf/NaN classification, normalized packing, and EXEC masking).
Not tested
Native or split wave64, direct DXIL, release builds, the workspace suite, retail smoke, and other adapters.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the checked-in fixtures and prepared this report.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.