Recompiler: simplify typed buffer component decoding #1647

Open
github-bot wants to merge 1 commit from github-bot/gh-1647 into main AGit
Owner

@⁠coolpersonnn on GitHub · 2026-11-24 18:39 UTC · original
coolpersonnn:codex/shader-compile-optimization → main · +71 −17 · 2 files · 1 commits · open

Part of #1269. Simplify the HLSL inlined for each dynamic typed-buffer component on the default translation path and the fallback from #1426. Each supported component fits in one dword, so the decoder can extract it directly, share signed and unsigned normalization, and expand the small packed floats without exponentiation.

What is in it

  • crates/xcl/src/gpu/recomp/emit.rs emits the smaller component decoder.
  • crates/xcl/src/gpu/recomp/tests.rs checks the format table and verifies decoded values from unaligned buffers on the GPU at -O0 and -O3.

Tested

  • Rebased head f860750 on Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, rustc 1.100.0 and DXC 1.8.2502.11. .\scripts\test.ps1 with XCL_ADAPTER=nvidia reported 961 passed, 0 failed and 43 ignored. The harness reported 23 GPU skips.
  • Optional XCL_SAMPLE_* fixtures were unset for the rebased suite.
GPU coverage skips on the rebased head
SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::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))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::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))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows

The original measurements below were taken before this rebase.

  • Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, rustc 1.100.0, DXC 1.8.2502.11. Debug tests and release benchmarks/smoke.
  • .\scripts\test.ps1 with XCL_ADAPTER=nvidia and XCL_SAMPLE_RPF set reported 860 passed, 0 failed, 42 ignored. GPU skips were gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Release A/B on the HLSL path before rebasing, against 9e3831e. Ran xcl shaders <dir> --precompile --only cs --windows 4 --split 1, then --pipelines against the populated DXIL cache with XCL's PSO disk cache off. One format-heavy sample went from 427,204 to 386,108 DXIL bytes and from 17.04 to 13.30 s in the cold pipeline pass (median of two cold runs per build, one cached pair excluded). The giant -O0 sample went from 29,750,432 to 26,752,196 bytes and from 129.72 to 118.35 s for translation plus DXC. Both driver passes exceeded 90 s.

Regression run

Main

xcl-smoke v1
commit: c4d37bec1bb4286eb373aea963404a23f13401fa
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1082 (PresentX 1082)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15601 MB

PR head

xcl-smoke v1
commit: f860750d5221a591ed87af431e60ae4c4206a611
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1100 (PresentX 1100)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15438 MB

Not tested

  • AMD, Intel, native wave64, heap-window mode, or optional fixtures beyond the retail shader pack. The benchmarks cover HLSL compilation. The 60-second smoke run leaves the world-load stall unverified.

AI use

  • Codex (GPT-6 family, exact model variant unavailable) profiled the workload, wrote the code and tests, ran the checks, and prepared this description.

  • T3 Code / Antigravity resolved the current rebase. Codex (GPT-6 family, exact model variant unavailable) verified the resolution, reran the checks, and updated this description.

**@⁠coolpersonnn** on GitHub · 2026-11-24 18:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1647) `coolpersonnn:codex/shader-compile-optimization` → `main` · +71 −17 · 2 files · 1 commits · open Part of #1269. Simplify the HLSL inlined for each dynamic typed-buffer component on the default translation path and the fallback from #1426. Each supported component fits in one dword, so the decoder can extract it directly, share signed and unsigned normalization, and expand the small packed floats without exponentiation. **What is in it** - `crates/xcl/src/gpu/recomp/emit.rs` emits the smaller component decoder. - `crates/xcl/src/gpu/recomp/tests.rs` checks the format table and verifies decoded values from unaligned buffers on the GPU at `-O0` and `-O3`. **Tested** - Rebased head `f860750` on Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, rustc 1.100.0 and DXC 1.8.2502.11. `.\scripts\test.ps1` with `XCL_ADAPTER=nvidia` reported 961 passed, 0 failed and 43 ignored. The harness reported 23 GPU skips. - Optional `XCL_SAMPLE_*` fixtures were unset for the rebased suite. <details><summary>GPU coverage skips on the rebased head</summary> ```text SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::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)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::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)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D) SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows ``` </details> The original measurements below were taken before this rebase. - Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, rustc 1.100.0, DXC 1.8.2502.11. Debug tests and release benchmarks/smoke. - `.\scripts\test.ps1` with `XCL_ADAPTER=nvidia` and `XCL_SAMPLE_RPF` set reported 860 passed, 0 failed, 42 ignored. GPU skips were `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Release A/B on the HLSL path before rebasing, against `9e3831e`. Ran `xcl shaders <dir> --precompile --only cs --windows 4 --split 1`, then `--pipelines` against the populated DXIL cache with XCL's PSO disk cache off. One format-heavy sample went from 427,204 to 386,108 DXIL bytes and from 17.04 to 13.30 s in the cold pipeline pass (median of two cold runs per build, one cached pair excluded). The giant `-O0` sample went from 29,750,432 to 26,752,196 bytes and from 129.72 to 118.35 s for translation plus DXC. Both driver passes exceeded 90 s. **Regression run** Main ``` xcl-smoke v1 commit: c4d37bec1bb4286eb373aea963404a23f13401fa gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1082 (PresentX 1082) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15601 MB ``` PR head ``` xcl-smoke v1 commit: f860750d5221a591ed87af431e60ae4c4206a611 gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1100 (PresentX 1100) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15438 MB ``` **Not tested** - AMD, Intel, native wave64, heap-window mode, or optional fixtures beyond the retail shader pack. The benchmarks cover HLSL compilation. The 60-second smoke run leaves the world-load stall unverified. **AI use** - Codex (GPT-6 family, exact model variant unavailable) profiled the workload, wrote the code and tests, ran the checks, and prepared this description. - T3 Code / Antigravity resolved the current rebase. Codex (GPT-6 family, exact model variant unavailable) verified the resolution, reran the checks, and updated this description.
Each supported format component fits in one dword. Extract it directly,
share the signed and unsigned normalization, and expand packed floats
with their IEEE exponent and mantissa bits. This reduces the code DXC
inlines for every dynamic formatted buffer read.

Against 9e3831e on an RTX 5090, one compute pipeline's cold build went
from 17.04 to 13.30 seconds (two runs per build). A large -O0 shader's
DXIL dropped from 29,750,432 to 26,752,196 bytes.

Part of #1269
Assisted-by: Codex (GPT-6 family, exact model variant unavailable)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:27 +00:00
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-24 18:47 UTC · original

Independent AMD check at a632fbbd10dbd1a7e0cc03f5dc48670beee32ec0.

Tested

  • AMD Radeon(TM) Graphics (Ryzen 7 9800X3D integrated GPU, driver 32.0.21042.62), Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC 1.8.2502.11, debug. Selected the GPU with XCL_ADAPTER='AMD Radeon'.
  • cargo build --workspace --locked passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output reported 860 passed, 0 failed, 42 ignored. One GPU skip is included in that pass count (heap_window_out_of_memory_falls_back_to_the_switch_form, heap windows off). The bundled title test passed.
  • With XCL_REQUIRE_GPU=wave64,mesh, cargo test --locked -p xcl --lib -- buffer_format gpu_typed_buffer_loads_and_stores --test-threads=1 --show-output gave 5 passed, 0 failed, 0 ignored, 0 skips.
  • I ran the same temporary probe at the PR head and its base c160d86ef2efe3a07e4dfb473e4fa72eafb413c0: cargo test --locked -p xcl --test typed_buffer_probe -- --exact typed_buffer_formats_across_wave_sizes_and_byte_alignments --nocapture --test-threads=1. It ran the 11 fixtures from gpu_buffer_format_component_decode (including the invalid descriptor) at starting byte offsets 0, 1, 2 and 3, on wave32 and native wave64, at DXC -O0 and -O3. Both runs passed with 0 skips. Each build matched all 33,792 expected component values bit for bit across 176 dispatches.

The generated DXIL for that one synthetic dynamic-format shader was smaller in all four builds:

Shader Base bytes PR bytes
wave32 -O0 9,436 8,708
wave32 -O3 8,220 7,616
wave64 -O0 9,456 8,728
wave64 -O3 8,232 7,632

Not tested

Heap-window mode, retail shader packs and title smoke, compile or pipeline timings.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) adapted the temporary probe, ran the tests, and drafted this report.

**@⁠nnonno91** on GitHub · 2026-11-24 18:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1647#issuecomment-7141155884) Independent AMD check at `a632fbbd10dbd1a7e0cc03f5dc48670beee32ec0`. **Tested** - AMD Radeon(TM) Graphics (Ryzen 7 9800X3D integrated GPU, driver 32.0.21042.62), Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC 1.8.2502.11, debug. Selected the GPU with `XCL_ADAPTER='AMD Radeon'`. - `cargo build --workspace --locked` passed. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output` reported **860 passed, 0 failed, 42 ignored**. One GPU skip is included in that pass count (`heap_window_out_of_memory_falls_back_to_the_switch_form`, heap windows off). The bundled title test passed. - With `XCL_REQUIRE_GPU=wave64,mesh`, `cargo test --locked -p xcl --lib -- buffer_format gpu_typed_buffer_loads_and_stores --test-threads=1 --show-output` gave **5 passed, 0 failed, 0 ignored, 0 skips**. - I ran the same temporary probe at the PR head and its base `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`: `cargo test --locked -p xcl --test typed_buffer_probe -- --exact typed_buffer_formats_across_wave_sizes_and_byte_alignments --nocapture --test-threads=1`. It ran the 11 fixtures from `gpu_buffer_format_component_decode` (including the invalid descriptor) at starting byte offsets 0, 1, 2 and 3, on wave32 and native wave64, at DXC `-O0` and `-O3`. Both runs passed with 0 skips. Each build matched all **33,792** expected component values bit for bit across **176** dispatches. The generated DXIL for that one synthetic dynamic-format shader was smaller in all four builds: | Shader | Base bytes | PR bytes | | --- | ---: | ---: | | wave32 `-O0` | 9,436 | 8,708 | | wave32 `-O3` | 8,220 | 7,616 | | wave64 `-O0` | 9,456 | 8,728 | | wave64 `-O3` | 8,232 | 7,632 | **Not tested** Heap-window mode, retail shader packs and title smoke, compile or pipeline timings. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) adapted the temporary probe, ran the tests, and drafted this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 21:06 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 unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 21:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1647#issuecomment-7144495128) 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 unmodified `main`.) Thanks!
Author
Owner

@⁠throny on GitHub · 2026-11-25 09:20 UTC · original

Test report for exact head f860750.

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, title runs in release.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on f860750 as it is (its own base): 961 passed, 0 failed, 43 ignored. SKIPPED: 23 lines (no wave64 on this adapter, and the like).
  • scripts/smoke.ps1, the retail title, 60 s, release builds, main 568e7db first, then this head:

main:

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1608 (PresentX 1608)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15842 MB

PR:

xcl-smoke v1
commit: f860750d5221a591ed87af431e60ae4c4206a611
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1565 (PresentX 1565)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16252 MB

Not tested: AMD, the head merged onto current main, a world load.

AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.

**@⁠throny** on GitHub · 2026-11-25 09:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1647#issuecomment-7158201508) Test report for exact head `f860750`. **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, title runs in release. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on `f860750` as it is (its own base): **961 passed, 0 failed, 43 ignored**. `SKIPPED`: 23 lines (no wave64 on this adapter, and the like). - `scripts/smoke.ps1`, the retail title, 60 s, release builds, `main` `568e7db` first, then this head: main: ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 4080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1608 (PresentX 1608) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15842 MB ``` PR: ``` xcl-smoke v1 commit: f860750d5221a591ed87af431e60ae4c4206a611 gpu: NVIDIA GeForce RTX 4080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1565 (PresentX 1565) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16252 MB ``` **Not tested:** AMD, the head merged onto current `main`, a world load. AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-26 05:41 UTC · original

NVIDIA and AMD full-suite run, to go with the reports above by throny, since none of them covers AMD. Tested exact head f860750d (on its base c4d37be).

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: 956 passed, 0 failed, 43 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.
  • The new tests ran and passed: buffer_format_components_fit_in_one_dword, gpu_buffer_format_component_decode.
  • 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: 961 passed, 0 failed, 43 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 b49be183 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-26 05:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/1647#issuecomment-7183709638) NVIDIA and AMD full-suite run, to go with the reports above by throny, since none of them covers AMD. Tested exact head `f860750d` (on its base `c4d37be`). **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`: **956 passed, 0 failed, 43 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`. - The new tests ran and passed: `buffer_format_components_fit_in_one_dword`, `gpu_buffer_format_component_decode`. - 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`: **961 passed, 0 failed, 43 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 `b49be183` 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-26 05:58 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 05:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1647#issuecomment-7183969768) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1647/head:github-bot/gh-1647'
git switch 'github-bot/gh-1647'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1647'
git switch 'github-bot/gh-1647'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1647'
git switch 'github-bot/gh-1647'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1647'
git switch 'main'
git merge --squash 'github-bot/gh-1647'
git switch 'main'
git merge --ff-only 'github-bot/gh-1647'
git switch 'main'
git merge 'github-bot/gh-1647'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.