Direct DXIL: decode inline float constants as f32 for v_cvt_f16_u16 and v_cvt_f16_i16 #1870

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

@⁠emirduran707 on GitHub · 2026-11-24 22:19 UTC · original
emirduran707:dxil-cvt-f16-int-inline-const → main · +30 −1 · 2 files · 1 commits · open

Lw::valu16 passed name.contains("f16") as src_f16 to self.sources(), which decoded inline float constants (240..=248) as f16 bit patterns for v_cvt_f16_u16 and v_cvt_f16_i16. Both instructions take a 16-bit integer source (not f16), so inline constants decode as f32 bit patterns per the RDNA2 ISA and recomp/emit.rs (for example, v_cvt_f16_u16 v0, 1.0 wrote 0x7380 instead of 0x0000).

Lw::valu16 now excludes v_cvt_f16_u16 and v_cvt_f16_i16 from src_f16, matching recomp/emit.rs.

What is in it

  • crates/xcl/src/gpu/dxil/lower_wide.rs: set src_f16 = name.contains("f16") && !matches!(name, "v_cvt_f16_u16" | "v_cvt_f16_i16") in Lw::valu16.
  • crates/xcl/src/gpu/dxil/core_tests.rs: GPU parity test v_cvt_f16_int_decodes_inline_float_constants_as_f32 against HLSL (SRC0 = 242, 243, 248).

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 on 1506f4b (rebased onto main 2aa2d1a): 1136 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record)
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3) fail identically on unmodified main 2aa2d1a on this GPU (seeds 722 and 1599).
  • v_cvt_f16_int_decodes_inline_float_constants_as_f32 before the change failed (v0: 0x7380 vs 0x0); passes and matches HLSL after

Regression run

main:

xcl-smoke v1
commit: 2aa2d1a54396885bb5bfce8edef4285cf24803c2
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1540 (PresentX 1540)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 20525 MB

this PR:

xcl-smoke v1
commit: 1506f4baa4e8cb24e02c1093a2062c854fbd63ed
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1564 (PresentX 1564)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16898 MB

Not tested

  • NVIDIA and Intel GPUs.
  • The smoke title's run is a regression check only.

AI use

  • Antigravity with Gemini 4 Neon: found the bug, wrote the fix, GPU parity test and this description, and ran the test suite and smoke runs above.
  • Claude Code with Claude Opus 5.5: rebased the change onto main 2aa2d1a (a conflict in crates/xcl/src/gpu/dxil/core_tests.rs; both tests kept, this PR's now beside ps_get_lod_with_a_static_sampler) and reran the suite and smoke runs above.
**@⁠emirduran707** on GitHub · 2026-11-24 22:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870) `emirduran707:dxil-cvt-f16-int-inline-const` → `main` · +30 −1 · 2 files · 1 commits · open `Lw::valu16` passed `name.contains("f16")` as `src_f16` to `self.sources()`, which decoded inline float constants (`240..=248`) as f16 bit patterns for `v_cvt_f16_u16` and `v_cvt_f16_i16`. Both instructions take a 16-bit integer source (not f16), so inline constants decode as f32 bit patterns per the RDNA2 ISA and `recomp/emit.rs` (for example, `v_cvt_f16_u16 v0, 1.0` wrote `0x7380` instead of `0x0000`). `Lw::valu16` now excludes `v_cvt_f16_u16` and `v_cvt_f16_i16` from `src_f16`, matching `recomp/emit.rs`. **What is in it** - `crates/xcl/src/gpu/dxil/lower_wide.rs`: set `src_f16 = name.contains("f16") && !matches!(name, "v_cvt_f16_u16" | "v_cvt_f16_i16")` in `Lw::valu16`. - `crates/xcl/src/gpu/dxil/core_tests.rs`: GPU parity test `v_cvt_f16_int_decodes_inline_float_constants_as_f32` against HLSL (`SRC0 = 242`, `243`, `248`). **Tested** - AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` on 1506f4b (rebased onto `main` `2aa2d1a`): 1136 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu`; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`) - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3`) fail identically on unmodified `main` `2aa2d1a` on this GPU (seeds 722 and 1599). - `v_cvt_f16_int_decodes_inline_float_constants_as_f32` before the change failed (`v0: 0x7380 vs 0x0`); passes and matches HLSL after **Regression run** main: ``` xcl-smoke v1 commit: 2aa2d1a54396885bb5bfce8edef4285cf24803c2 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1540 (PresentX 1540) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 20525 MB ``` this PR: ``` xcl-smoke v1 commit: 1506f4baa4e8cb24e02c1093a2062c854fbd63ed gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1564 (PresentX 1564) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16898 MB ``` **Not tested** - NVIDIA and Intel GPUs. - The smoke title's run is a regression check only. **AI use** - Antigravity with Gemini 4 Neon: found the bug, wrote the fix, GPU parity test and this description, and ran the test suite and smoke runs above. - Claude Code with Claude Opus 5.5: rebased the change onto `main` `2aa2d1a` (a conflict in `crates/xcl/src/gpu/dxil/core_tests.rs`; both tests kept, this PR's now beside `ps_get_lod_with_a_static_sampler`) and reran the suite and smoke runs above.
`Lw::valu16` passed `name.contains("f16")` as `src_f16` to `self.sources()`,
decoding inline float constants (`240..=248`) as f16 bit patterns for
`v_cvt_f16_u16` and `v_cvt_f16_i16`. Both instructions take a 16-bit integer
source (not f16), so inline constants decode as f32 bit patterns per the RDNA2
ISA and `emit.rs` (e.g. `v_cvt_f16_u16 v0, 1.0` produced `0x7380` instead of
`0x0000`).

Exclude `v_cvt_f16_u16` and `v_cvt_f16_i16` from `src_f16`, matching
`recomp/emit.rs`, and add a GPU parity test against HLSL.

Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:08:01 +00:00
Author
Owner

@⁠frenziedcoder on GitHub · 2026-11-24 22:23 UTC · original · edited 2026-11-24 22:26 UTC

NVIDIA test report for d0cd5aa: full suite green, its own test v_cvt_f16_int_decodes_inline_float_constants_as_f32 passes, and a clean smoke pair on the retail title (1653 vs 1654 frames).

Tested

  • NVIDIA GeForce RTX 5080 16 GB (driver 617.14, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB, Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact head d0cd5aac7a736db220f9bff4f584c27c10a19439, no local changes.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 (debug): 960 passed, 0 failed, 43 ignored; the PR's own test v_cvt_f16_int_decodes_inline_float_constants_as_f32 passes. SKIPPED: gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu (no wave64), gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu (no wave64), gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu (no wave64), gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu (no wave64), gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu (no wave64), 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))), gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu (f16 arithmetic, wave64: no wave64), 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))), gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu (f16 packed, wave64: no wave64), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (f32 arithmetic, wave64: no wave64), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (f32 compares, wave64: no wave64), 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))), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (f32 conversions, wave64: no wave64), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (f32 rounding, wave64: no wave64), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (f32 three-source, wave64: no wave64), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (f32 transcendentals, wave64: no wave64), gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu (f64, wave64: no wave64), gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu (integer arithmetic, wave64: no wave64), gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu (integer carries, wave64: no wave64), 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).
  • test_title_draws_with_a_root_signature_under_the_debug_layer reports ok, but this machine has no D3D12 debug layer (debug layer requested but unavailable … (0x887A002D)), so it ran without the layer and is no evidence either way.

Regression run (scripts/smoke.ps1 -Seconds 60, release, the retail title of #505 at its start screen; XCL_PSO_PRELOAD=0 for both builds, because this machine's preload list holds the program of #1307)

base (1d027e5, this PR's merge base with main):

xcl-smoke v1
commit: 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331
gpu: NVIDIA GeForce RTX 5080
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 1654 (PresentX 1654)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14598 MB

this PR:

xcl-smoke v1
commit: d0cd5aac7a736db220f9bff4f584c27c10a19439
gpu: NVIDIA GeForce RTX 5080
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 1653 (PresentX 1653)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14598 MB

Not tested: this code in the title: it is on the opt-in direct-DXIL path (XCL_DIRECT_DXIL), which the smoke runs leave unset (default HLSL backend), so they show only that nothing else regressed; the world load (the smoke runs stop at the start screen, so code that only runs later is not exercised there); AMD.

AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.

**@⁠frenziedcoder** on GitHub · 2026-11-24 22:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7146173268) · edited 2026-11-24 22:26 UTC **NVIDIA test report for `d0cd5aa`: full suite green, its own test `v_cvt_f16_int_decodes_inline_float_constants_as_f32` passes, and a clean smoke pair on the retail title (1653 vs 1654 frames).** **Tested** - NVIDIA GeForce RTX 5080 16 GB (driver 617.14, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB, Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 `stable-x86_64-pc-windows-msvc`, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact head `d0cd5aac7a736db220f9bff4f584c27c10a19439`, no local changes. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` (debug): **960 passed, 0 failed, 43 ignored**; the PR's own test `v_cvt_f16_int_decodes_inline_float_constants_as_f32` passes. SKIPPED: `gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu` (no wave64), `gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu` (no wave64), `gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu` (no wave64), `gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu` (no wave64), `gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu` (no wave64), `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))), `gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu` (f16 arithmetic, wave64: no wave64), `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))), `gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu` (f16 packed, wave64: no wave64), `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu` (f32 arithmetic, wave64: no wave64), `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu` (f32 compares, wave64: no wave64), `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))), `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu` (f32 conversions, wave64: no wave64), `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu` (f32 rounding, wave64: no wave64), `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu` (f32 three-source, wave64: no wave64), `gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu` (f32 transcendentals, wave64: no wave64), `gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu` (f64, wave64: no wave64), `gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu` (integer arithmetic, wave64: no wave64), `gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu` (integer carries, wave64: no wave64), `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). - `test_title_draws_with_a_root_signature_under_the_debug_layer` reports ok, but this machine has no D3D12 debug layer (`debug layer requested but unavailable … (0x887A002D)`), so it ran without the layer and is no evidence either way. **Regression run** (`scripts/smoke.ps1 -Seconds 60`, release, the retail title of #505 at its start screen; `XCL_PSO_PRELOAD=0` for both builds, because this machine's preload list holds the program of #1307) base (`1d027e5`, this PR's merge base with `main`): ``` xcl-smoke v1 commit: 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331 gpu: NVIDIA GeForce RTX 5080 title: 16b5e5d4 seconds: 60 exit: 0x0 frames shown: 1654 (PresentX 1654) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14598 MB ``` this PR: ``` xcl-smoke v1 commit: d0cd5aac7a736db220f9bff4f584c27c10a19439 gpu: NVIDIA GeForce RTX 5080 title: 16b5e5d4 seconds: 60 exit: 0x0 frames shown: 1653 (PresentX 1653) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14598 MB ``` **Not tested:** this code in the title: it is on the opt-in direct-DXIL path (`XCL_DIRECT_DXIL`), which the smoke runs leave unset (default HLSL backend), so they show only that nothing else regressed; the world load (the smoke runs stop at the start screen, so code that only runs later is not exercised there); AMD. *AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.*
Author
Owner

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

NVIDIA run, since the description lists it as untested: RTX 3070 8 GB, driver 616.56, Windows 11, debug, d0cd5aa on main 689f2db.

  • v_cvt_f16_int_decodes_inline_float_constants_as_f32: passes, 2 of 2 runs.
  • dxil::core_tests: 13 passed, 0 failed, 1 ignored.

On the rule itself: AnyPS5's translator reads these the same way, as an independent implementation (not a hardware measurement). v_cvt_f16_u16 / v_cvt_f16_i16 read their source with readU16AsU32, the low 16 bits of the f32 inline pattern, so 1.0 gives 0. Only instructions with an f16 source go through its f16 inline table (readF16SourceBits: 1.0 → 0x3c00).

AI-assisted (Claude Code). Synthetic tests only.

**@⁠upipibi** on GitHub · 2026-11-24 22:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7146269952) NVIDIA run, since the description lists it as untested: RTX 3070 8 GB, driver 616.56, Windows 11, debug, `d0cd5aa` on `main` `689f2db`. - `v_cvt_f16_int_decodes_inline_float_constants_as_f32`: passes, 2 of 2 runs. - `dxil::core_tests`: 13 passed, 0 failed, 1 ignored. On the rule itself: AnyPS5's translator reads these the same way, as an independent implementation (not a hardware measurement). `v_cvt_f16_u16` / `v_cvt_f16_i16` read their source with `readU16AsU32`, the low 16 bits of the f32 inline pattern, so 1.0 gives 0. Only instructions with an f16 source go through its f16 inline table (`readF16SourceBits`: 1.0 → `0x3c00`). AI-assisted (Claude Code). Synthetic tests only.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 01:08 UTC · original

Both AMD and NVIDIA verification look good on d0cd5aa. This is currently DIRTY with merge conflicts against main — please rebase onto main and let Build and test (Windows, no GPU) run cleanly so we can merge.

**@⁠raylitebull** on GitHub · 2026-11-25 01:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7149238675) Both AMD and NVIDIA verification look good on `d0cd5aa`. This is currently `DIRTY` with merge conflicts against `main` — please rebase onto `main` and let `Build and test (Windows, no GPU)` run cleanly so we can merge.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 01:36 UTC · original

Build and test (Windows, no GPU) and PR description both passed on c076305, and #1922 just landed on main touching the same spot at the end of crates/xcl/src/gpu/dxil/core_tests.rs. Please rebase onto main to clear the DIRTY conflict so we can merge.

**@⁠raylitebull** on GitHub · 2026-11-25 01:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7149737091) `Build and test (Windows, no GPU)` and `PR description` both passed on `c076305`, and `#1922` just landed on `main` touching the same spot at the end of `crates/xcl/src/gpu/dxil/core_tests.rs`. Please rebase onto `main` to clear the `DIRTY` conflict so we can merge.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 01:45 UTC · original

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 01:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7149927111) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:04 UTC · original

PR #1870 Arc A770 parity test

Tested

  • PR #1870 was open at 1506f4baa4e8cb24e02c1093a2062c854fbd63ed before and after the run, verified from the public PR page and git ls-remote origin refs/pull/1870/head. The assigned detached checkout was clean at that SHA before and after the GPU run. The five visible discussion comments contained no Arc result. The earlier RTX 5080 and RTX 3070 reports used d0cd5aa. RTX 5080 report · RTX 3070 report
  • Windows 11 Enterprise Evaluation x64 build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), Cargo 1.100.0 (3acc79c0c), unoptimized test profile with debug info disabled. The run logged DXC and DXIL 1.9.2609.5 (DXC build 01b62ad4).
  • 1 passed, 0 failed, 0 ignored, 0 skipped (zero SKIPPED lines). The exact filter excluded 1,114 tests. The GPU command exited 0 after the test completed in 0.22 s. The wrapper logged acquisition and release of the Arc A770 mutex.
  • The fixture dispatched direct DXIL and HLSL compiled with DXC for cs_6_6 in wave32, then compared all 32 bits of lane 0's v0, v1, and v2 across the backends. v0 used unsigned V_CVT_F16_U16 with SRC0=242 (+1.0 f32, low 16 bits 0x0000). v1 used signed V_CVT_F16_I16 with SRC0=243 (-1.0 f32, low 16 bits 0x0000). v2 used unsigned V_CVT_F16_U16 with SRC0=248 (1/(2π) f32, low 16 bits 0xF983). The signed opcode therefore exercised a zero integer input. The checked-in assertions compare against HLSL readback. Fixture at tested commit

Process environment used XCL_ADAPTER=A770, XCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64, CARGO_BUILD_JOBS=2, CARGO_INCREMENTAL=0, CARGO_PROFILE_DEV_DEBUG=0, CARGO_PROFILE_TEST_DEBUG=0, CARGO_TARGET_DIR=L:/XclTooling/pr1778-2e2ee55-20261125-020159/target, and TEMP and TMP set to L:/XclTooling/pr1870/temp.

Prebuild outside the mutex:

& "$env:USERPROFILE/.cargo/bin/cargo.exe" test -p xcl --lib --no-run --locked --message-format=json

GPU run in a fresh PowerShell process launched with -NoProfile -ExecutionPolicy RemoteSigned. The prebuild's Cargo JSON identified the executable.

& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test {
    & 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' 'gpu::dxil::core_tests::v_cvt_f16_int_decodes_inline_float_constants_as_f32' --exact --nocapture --test-threads=1
}

Raw logs use the prefix L:/XclTooling/pr1870/pr1870-1506f4b-20261125T030129487Z with suffixes .build.jsonl, .build.stderr.log, .arc.stdout.log, .arc.stderr.log, and .arc.exitcode.log.

Not tested

  • Nonzero signed integer input, additional operand encodings, lanes beyond lane 0, native or split wave64, comparison against a hardware oracle, other adapters or driver versions, baseline, release, broad suites, and retail or smoke runs.

AI use

  • T3 Code / Codex (gpt-6.2-sol) ran the checked-in test and wrote this report from the logs and fixture.
**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7151562844) # PR #1870 Arc A770 parity test **Tested** - [PR #1870](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1870) was open at `1506f4baa4e8cb24e02c1093a2062c854fbd63ed` before and after the run, verified from the public PR page and `git ls-remote origin refs/pull/1870/head`. The assigned detached checkout was clean at that SHA before and after the GPU run. The five visible discussion comments contained no Arc result. The earlier RTX 5080 and RTX 3070 reports used `d0cd5aa`. [RTX 5080 report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1870) · [RTX 3070 report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1870) - Windows 11 Enterprise Evaluation x64 build `26200.9974`, AMD Ryzen 7 3800X, Intel Arc A770 driver `32.0.101.9175`, Rust `1.100.0` (`0ef1bc386`, `x86_64-pc-windows-msvc`), Cargo `1.100.0` (`3acc79c0c`), unoptimized test profile with debug info disabled. The run logged DXC and DXIL `1.9.2609.5` (DXC build `01b62ad4`). - **1 passed, 0 failed, 0 ignored, 0 skipped** (zero `SKIPPED` lines). The exact filter excluded 1,114 tests. The GPU command exited 0 after the test completed in 0.22 s. The wrapper logged acquisition and release of the Arc A770 mutex. - The fixture dispatched direct DXIL and HLSL compiled with DXC for `cs_6_6` in wave32, then compared all 32 bits of lane 0's `v0`, `v1`, and `v2` across the backends. `v0` used unsigned `V_CVT_F16_U16` with `SRC0=242` (`+1.0` f32, low 16 bits `0x0000`). `v1` used signed `V_CVT_F16_I16` with `SRC0=243` (`-1.0` f32, low 16 bits `0x0000`). `v2` used unsigned `V_CVT_F16_U16` with `SRC0=248` (`1/(2π)` f32, low 16 bits `0xF983`). The signed opcode therefore exercised a zero integer input. The checked-in assertions compare against HLSL readback. [Fixture at tested commit](https://github.com/xcl-dev/xcl/blob/1506f4baa4e8cb24e02c1093a2062c854fbd63ed/crates/xcl/src/gpu/dxil/core_tests.rs#L445-L467) Process environment used `XCL_ADAPTER=A770`, `XCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64`, `CARGO_BUILD_JOBS=2`, `CARGO_INCREMENTAL=0`, `CARGO_PROFILE_DEV_DEBUG=0`, `CARGO_PROFILE_TEST_DEBUG=0`, `CARGO_TARGET_DIR=L:/XclTooling/pr1778-2e2ee55-20261125-020159/target`, and `TEMP` and `TMP` set to `L:/XclTooling/pr1870/temp`. Prebuild outside the mutex: ```powershell & "$env:USERPROFILE/.cargo/bin/cargo.exe" test -p xcl --lib --no-run --locked --message-format=json ``` GPU run in a fresh PowerShell process launched with `-NoProfile -ExecutionPolicy RemoteSigned`. The prebuild's Cargo JSON identified the executable. ```powershell & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { & 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' 'gpu::dxil::core_tests::v_cvt_f16_int_decodes_inline_float_constants_as_f32' --exact --nocapture --test-threads=1 } ``` Raw logs use the prefix `L:/XclTooling/pr1870/pr1870-1506f4b-20261125T030129487Z` with suffixes `.build.jsonl`, `.build.stderr.log`, `.arc.stdout.log`, `.arc.stderr.log`, and `.arc.exitcode.log`. **Not tested** - Nonzero signed integer input, additional operand encodings, lanes beyond lane 0, native or split wave64, comparison against a hardware oracle, other adapters or driver versions, baseline, release, broad suites, and retail or smoke runs. **AI use** - T3 Code / Codex (`gpt-6.2-sol`) ran the checked-in test and wrote this report from the logs and fixture.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 00:34 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 00:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/1870#issuecomment-7178903714) 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/1870/head:github-bot/gh-1870'
git switch 'github-bot/gh-1870'

Merge

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