Tests: report per-lane translator refusals as skipped subcases #2166

Manually merged
github merged 1 commit from gh-pr/2166/head into gh-pr/2166/base 2026-11-26 05:21:35 +00:00
Owner

@⁠luckyteagirl on GitHub · 2026-11-25 06:44 UTC · original
luckyteagirl:codex/per-lane-refusal-skip → main · +8 −1 · 1 files · 1 commits · merged 2026-11-25 10:45 UTC

Part of #1651. Keep XCL_REQUIRE_GPU=mesh and XCL_REQUIRE_GPU=wave64 focused on missing hardware coverage. An unsupported per-lane translator opcode now prints a SKIPPED diagnostic and continues to the next subcase instead of calling runner::skip_test, which panics under those requirement modes. The change is limited to the DXIL GPU test module; runtime translation is unchanged.

What is in it

  • crates/xcl/src/gpu/recomp/lower_dxil.rs: report per-lane translator refusals as skipped subcases with the test name and refusal reason. The test still runs every supported case and still fails on a GPU execution error.

Tested

  • Base 6020a33b16ba2de25b3aef5947552f2dc1831f09, head cec6085dd7afb932f69d6d02edd4fb809d5a9735; Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.
  • On current main, f16_programs_on_the_gpu with XCL_REQUIRE_GPU=mesh failed: 0 passed, 1 failed because runner::skip_test panicked on the V_MUL_F16 translator refusal. No missing mesh hardware was reported.
  • On this head, the programs_on_the_gpu filter with XCL_REQUIRE_GPU=mesh passed 4/0/0, with six unsupported per-lane subcases explicitly SKIPPED. The same filter with XCL_REQUIRE_GPU=wave64 also passed 4/0/0, with the same six explicit skips. Those skips are included in the harness's passed-test count; they are not GPU execution coverage for the refused opcodes.
  • git diff --check, cargo build --locked --workspace -j 2, and release workspace builds on both revisions passed.
  • cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-output completed on this head: 993 passed, 161 failed, 46 ignored. All recorded failures were GPU tests; the RX 6800M run reported device suspension 0x887A0005. The full suite is not green.

Regression run

Main:

xcl-smoke v1
commit: 6020a33b16ba2de25b3aef5947552f2dc1831f09
gpu: AMD Radeon RX 6800M
title: 2ef5fd64
seconds: 7
exit: 0x0
frames shown: 1 (PresentX 1)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 6984 MB

PR head:

xcl-smoke v1
commit: cec6085dd7afb932f69d6d02edd4fb809d5a9735
gpu: AMD Radeon RX 6800M
title: 2ef5fd64
seconds: 7
exit: 0x0
frames shown: 1 (PresentX 1)
presents per 2 s (last 3): 0 0 1
device removals: 0
crashes: 0
peak commit: 7060 MB

Not tested

  • The seven-second owned-title runs reached one frame and zero draws, so they do not exercise the unsupported per-lane opcodes or later game scenes. Other adapters and newer drivers are untested.

AI use

OpenAI Codex (GPT-6, exact variant not exposed in this session) prepared the patch, rebased it, ran the builds, GPU tests, full suite and smoke comparisons, reviewed the diff, and drafted this description.

**@⁠luckyteagirl** on GitHub · 2026-11-25 06:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/2166) `luckyteagirl:codex/per-lane-refusal-skip` → `main` · +8 −1 · 1 files · 1 commits · merged 2026-11-25 10:45 UTC Part of #1651. Keep `XCL_REQUIRE_GPU=mesh` and `XCL_REQUIRE_GPU=wave64` focused on missing hardware coverage. An unsupported per-lane translator opcode now prints a `SKIPPED` diagnostic and continues to the next subcase instead of calling `runner::skip_test`, which panics under those requirement modes. The change is limited to the DXIL GPU test module; runtime translation is unchanged. **What is in it** - `crates/xcl/src/gpu/recomp/lower_dxil.rs`: report per-lane translator refusals as skipped subcases with the test name and refusal reason. The test still runs every supported case and still fails on a GPU execution error. **Tested** - Base `6020a33b16ba2de25b3aef5947552f2dc1831f09`, head `cec6085dd7afb932f69d6d02edd4fb809d5a9735`; Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. - On current main, `f16_programs_on_the_gpu` with `XCL_REQUIRE_GPU=mesh` failed: **0 passed, 1 failed** because `runner::skip_test` panicked on the `V_MUL_F16` translator refusal. No missing mesh hardware was reported. - On this head, the `programs_on_the_gpu` filter with `XCL_REQUIRE_GPU=mesh` passed **4/0/0**, with six unsupported per-lane subcases explicitly `SKIPPED`. The same filter with `XCL_REQUIRE_GPU=wave64` also passed **4/0/0**, with the same six explicit skips. Those skips are included in the harness's passed-test count; they are not GPU execution coverage for the refused opcodes. - `git diff --check`, `cargo build --locked --workspace -j 2`, and release workspace builds on both revisions passed. - `cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-output` completed on this head: **993 passed, 161 failed, 46 ignored**. All recorded failures were GPU tests; the RX 6800M run reported device suspension `0x887A0005`. The full suite is not green. **Regression run** Main: ``` xcl-smoke v1 commit: 6020a33b16ba2de25b3aef5947552f2dc1831f09 gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 7 exit: 0x0 frames shown: 1 (PresentX 1) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 6984 MB ``` PR head: ``` xcl-smoke v1 commit: cec6085dd7afb932f69d6d02edd4fb809d5a9735 gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 7 exit: 0x0 frames shown: 1 (PresentX 1) presents per 2 s (last 3): 0 0 1 device removals: 0 crashes: 0 peak commit: 7060 MB ``` **Not tested** - The seven-second owned-title runs reached one frame and zero draws, so they do not exercise the unsupported per-lane opcodes or later game scenes. Other adapters and newer drivers are untested. **AI use** OpenAI Codex (GPT-6, exact variant not exposed in this session) prepared the patch, rebased it, ran the builds, GPU tests, full suite and smoke comparisons, reviewed the diff, and drafted this description.
A per-lane translator refusal is a skipped subcase, not missing mesh or
wave64 hardware. Print the existing SKIPPED diagnostic directly so
XCL_REQUIRE_GPU continues to guard hardware coverage without turning
unsupported instructions into test failures.

Part of #1651.
Assisted-by: OpenAI Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:21:32 +00:00
github manually merged commit cec6085dd7 into gh-pr/2166/base 2026-11-26 05:21:35 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-25 07:07 UTC · original · edited 2026-11-25 07:12 UTC

Full-suite run, since this PR has no test report yet. Tested exact head cec6085 (on its base 6020a33).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1142 passed, 0 failed, 44 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1153 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 568e7db too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-25 07:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/2166#issuecomment-7155517515) · edited 2026-11-25 07:12 UTC Full-suite run, since this PR has no test report yet. Tested exact head `cec6085` (on its base `6020a33`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1142 passed, 0 failed, 44 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1153 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `568e7db` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://git.gtahub.st/github/xcl-dev--xcl/issues/1651)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 07:20 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!

**@⁠DavidM1911** on GitHub · 2026-11-25 07:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/2166#issuecomment-7155754561) 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!
This discussion has been locked. Commenting is limited to contributors.
No description provided.