Tests: skip half_precision_overloads_run without native 16-bit ops #1853

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

@⁠matheusfrta on GitHub · 2026-11-24 21:55 UTC · original
matheusfrta:patch-1795557342 → main · +30 −2 · 1 files · 1 commits · merged 2026-11-25 02:04 UTC

Skip the GPU execution step in gpu::dxil::ops_tests::half_precision_overloads_run when the adapter does not report Native16BitShaderOpsSupported (D3D12_FEATURE_D3D12_OPTIONS4), while keeping DXIL validation active.

On NVIDIA GeForce GTX 1080 Ti (Pascal), the adapter supports SM 6.6 and wave32 so wave32_supported() returns true, causing CreateComputePipelineState to fail with E_INVALIDARG (0x80070057) on the NativeLowPrecision kernel.

What is in it

  • check Native16BitShaderOpsSupported before GPU dispatch in crates/xcl/src/gpu/dxil/ops_tests.rs

Tested

  • hardware / env: GPU: NVIDIA GeForce GTX 1080 Ti; CPU: AMD Ryzen 7 5700X 8-Core Processor; OS: Microsoft Windows 11 Pro (22621); rustc 1.99.0 (b940084d7 2026-09-28); debug
  • cargo test --workspace -- --test-threads=4: 959 passed, 0 failed, 43 ignored (SKIPPED GPU tests: 53 (validator 1.6 < 1.8 (validation step only)), 7 (no wave64), 5 (no mesh shaders), 1 (no native 16-bit ops), 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64: no wave64), 1 (f32 arithmetic, wave64: no wave64), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f16 packed, wave64: no wave64), 1 (f32 compares, wave64: no wave64), 1 (f64, wave64: no wave64), 1 (integer arithmetic, wave64: no wave64), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave64: no wave64), 1 (f32 rounding, wave64: no wave64), 1 (integer carries, wave64: no wave64), 1 (f32 transcendentals, wave64: no wave64), 1 (f32 three-source, wave64: no wave64), 1 (no heap windows))

Not tested

  • retail XCL_SAMPLE_* shader/data suites and retail titles (no game files on this machine)
  • GPUs with native 16-bit shader ops enabled (e.g. Turing+ / RDNA+)

AI use

  • Google AI Studio, Gemini 4 Hydrogen (High): wrote the capability tests and validated the tests.
**@⁠matheusfrta** on GitHub · 2026-11-24 21:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1853) `matheusfrta:patch-1795557342` → `main` · +30 −2 · 1 files · 1 commits · merged 2026-11-25 02:04 UTC Skip the GPU execution step in `gpu::dxil::ops_tests::half_precision_overloads_run` when the adapter does not report `Native16BitShaderOpsSupported` (`D3D12_FEATURE_D3D12_OPTIONS4`), while keeping DXIL validation active. On NVIDIA GeForce GTX 1080 Ti (Pascal), the adapter supports SM 6.6 and wave32 so `wave32_supported()` returns true, causing `CreateComputePipelineState` to fail with `E_INVALIDARG (0x80070057)` on the `NativeLowPrecision` kernel. **What is in it** - check `Native16BitShaderOpsSupported` before GPU dispatch in `crates/xcl/src/gpu/dxil/ops_tests.rs` **Tested** - hardware / env: GPU: NVIDIA GeForce GTX 1080 Ti; CPU: AMD Ryzen 7 5700X 8-Core Processor; OS: Microsoft Windows 11 Pro (22621); rustc 1.99.0 (b940084d7 2026-09-28); debug - `cargo test --workspace -- --test-threads=4`: 959 passed, 0 failed, 43 ignored (SKIPPED GPU tests: 53 (validator 1.6 < 1.8 (validation step only)), 7 (no wave64), 5 (no mesh shaders), 1 (no native 16-bit ops), 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64: no wave64), 1 (f32 arithmetic, wave64: no wave64), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f16 packed, wave64: no wave64), 1 (f32 compares, wave64: no wave64), 1 (f64, wave64: no wave64), 1 (integer arithmetic, wave64: no wave64), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave64: no wave64), 1 (f32 rounding, wave64: no wave64), 1 (integer carries, wave64: no wave64), 1 (f32 transcendentals, wave64: no wave64), 1 (f32 three-source, wave64: no wave64), 1 (no heap windows)) **Not tested** - retail `XCL_SAMPLE_*` shader/data suites and retail titles (no game files on this machine) - GPUs with native 16-bit shader ops enabled (e.g. Turing+ / RDNA+) **AI use** - Google AI Studio, Gemini 4 Hydrogen (High): wrote the capability tests and validated the tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:07:18 +00:00
github manually merged commit 62fcf074d5 into gh-pr/1853/base 2026-11-26 05:07:21 +00:00
Author
Owner

@⁠eizispark on GitHub · 2026-11-24 22:24 UTC · original

Hardware test report — commit 62fcf07

Verified 62fcf074d5b7160d09d20cdc17f873437b201cdf (clean merge with main 689f2db): pass.

Tested

  • Hardware: AMD Radeon RX 9070 XT (RDNA4, native 16-bit shader ops + native wave32/wave64, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 x64 (stable-x86_64-pc-windows-msvc, rustc 1.100.0 (0ef1bc386 2026-11-09)), debug tests + release smoke
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 959 passed, 0 failed, 43 ignored (8 skipped: 6 gpu::recomp::lower_dxil::tests f16 / V_CVT_F16_F32 #1426-semantics sub-cases, shaders::tests::pso_measurement_compiles_an_exact_synthetic_record — Windows Developer Mode required (0x887A002D), and heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows)
  • cargo test -p xcl --lib gpu::dxil::ops_tests::half_precision_overloads_run -- --exact --nocapture: 1 passed, 0 failed, 0 ignored, 0 skipped — executed on the GPU without skipping on RDNA4 (Native16BitShaderOpsSupported)
  • console_wave64_compute_through_the_pso_hook_dispatch_and_read_back and both native RDNA4 wave64 GPU tests (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware) passed cleanly

Regression run (scripts/smoke.ps1, 60 s, warm shader/driver cache)
main (4e3515eed124b9f4779f5ef4e2b54adf97da936a):

xcl-smoke v1
commit: 4e3515eed124b9f4779f5ef4e2b54adf97da936a
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1676 (PresentX 1676)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14731 MB

PR (62fcf074d5b7160d09d20cdc17f873437b201cdf):

xcl-smoke v1
commit: 62fcf074d5b7160d09d20cdc17f873437b201cdf
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1670 (PresentX 1670)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14857 MB

Not tested

  • adapters without Native16BitShaderOpsSupported (covered on GTX 1080 Ti in the PR description), Intel GPUs, Wine/vkd3d-proton, gameplay past the menus

AI use

  • Verified and formatted with Antigravity (Google DeepMind, Gemini 4 Carbon).
**@⁠eizispark** on GitHub · 2026-11-24 22:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1853#issuecomment-7146185249) ### Hardware test report — commit `62fcf07` Verified `62fcf074d5b7160d09d20cdc17f873437b201cdf` (clean merge with `main` `689f2db`): **pass**. **Tested** - Hardware: AMD Radeon RX 9070 XT (RDNA4, native 16-bit shader ops + native wave32/wave64, driver `32.0.32015.16001`), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 x64 (`stable-x86_64-pc-windows-msvc`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`), debug tests + release smoke - `cargo test --workspace --no-fail-fast -- --test-threads=4`: `959 passed, 0 failed, 43 ignored` (`8 skipped`: 6 `gpu::recomp::lower_dxil::tests` `f16` / `V_CVT_F16_F32` `#1426`-semantics sub-cases, `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` — Windows Developer Mode required (`0x887A002D`), and `heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows`) - `cargo test -p xcl --lib gpu::dxil::ops_tests::half_precision_overloads_run -- --exact --nocapture`: `1 passed, 0 failed, 0 ignored, 0 skipped` — executed on the GPU without skipping on RDNA4 (`Native16BitShaderOpsSupported`) - `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back` and both native RDNA4 wave64 GPU tests (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`) passed cleanly **Regression run** (`scripts/smoke.ps1`, 60 s, warm shader/driver cache) `main` (`4e3515eed124b9f4779f5ef4e2b54adf97da936a`): ``` xcl-smoke v1 commit: 4e3515eed124b9f4779f5ef4e2b54adf97da936a gpu: AMD Radeon RX 9070 XT title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1676 (PresentX 1676) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14731 MB ``` PR (`62fcf074d5b7160d09d20cdc17f873437b201cdf`): ``` xcl-smoke v1 commit: 62fcf074d5b7160d09d20cdc17f873437b201cdf gpu: AMD Radeon RX 9070 XT title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1670 (PresentX 1670) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14857 MB ``` **Not tested** - adapters without `Native16BitShaderOpsSupported` (covered on GTX 1080 Ti in the PR description), Intel GPUs, Wine/vkd3d-proton, gameplay past the menus **AI use** - Verified and formatted with Antigravity (Google DeepMind, Gemini 4 Carbon).
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 01:28 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 01:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/1853#issuecomment-7149592509) 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.