Recompiler: the per-lane form takes f16 converts and products from #1426 #2172
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2182"
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?
Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T08:10:43Z.
Removes the
DIFFERS_ON_1426refusal list from the per-lane form (crates/xcl/src/gpu/recomp/lower.rs). It was added in878afdawhile #1426's lowering still usedlegacyF32ToF16forv_cvt_f16_f32,v_mul_f16andv_pk_mul_f16; #1742 (18423c3) has since made them round to nearest even, so the list only sent programs that now translate correctly to the fallback.What is in it
c3015b1): drop the refusal list incrates/xcl/src/gpu/recomp/lower.rs(13 lines removed, nothing added)Tested
c3015b1(on main568e7db), no uncommitted changescargo test --workspace -- --test-threads=4: 1154 passed, 0 failed, 46 ignored (same counts as main568e7dbon this machine)f16_programs_on_the_gpu(f16 arithmetic, f16 packed) andf32_programs_on_the_gpu(f32 conversions) – now run and match the HLSL path. The remaining skips are 20 × "no wave64" and 1 × "no heap windows".Regression run
Run by Anon64 on a retail title (RTX 3060 12 GB, Windows 11, release, 60 s, default settings): their comment. No device removal or crash; frames 102 % of
main's, peak commit 100 %. siam4201 ran a 30 s pair on an RTX 5070 Ti with the same outcome (their comment). The per-lane form is only used withXCL_PER_LANE=1(withXCL_DIRECT_DXIL=1), off by default, so these are regression checks of the default path.main:
PR:
Not tested
f16_programs_on_the_gpuandf32_programs_on_the_gpuon an RX 6800M withXCL_DIRECT_DXIL=1: both pass, no SKIPPED – their comment)XCL_PER_LANE=1at runtime on a titleAI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T08:15:57Z.
Independent RX 6800M check on exact head
c3015b19ad82247000fc0831e8cabd53dae1ee03(base568e7db7729c8fa6c8f0f4b32d798faaf11462bb). The detached worktree was clean.Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M (RDNA2, native wave64), driver
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. I setXCL_ADAPTER=6800M,XCL_REQUIRE_GPU=wave64,XCL_DIRECT_DXIL=1, and the matchingXCL_DXC_DIR.Commands and results:
cargo test --locked -p xcl --lib -j 2 f16_programs_on_the_gpu -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored.cargo test --locked -p xcl --lib -j 2 f32_programs_on_the_gpu -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored.Neither log contains
SKIPPED. The shared test loop executes wave32 and native wave64 when both are supported, so the f16 arithmetic/packed and f32 conversion subcases reached the GPU instead of taking the old per-lane refusal path. The HLSL comparison program in these tests is compiled with-Gis, as the test source specifies; this report should not be read as a default-HLSL backend comparison.Scope: Focused debug-build tests only. I did not run the full workspace suite, compare with main on this branch, or perform a retail-title smoke run with
XCL_PER_LANE=1.AI use: OpenAI Codex ran the tests, inspected the test's wave-width and HLSL-reference branches, checked the logs and exact revision, and prepared this report.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T08:24:15Z.
Regression run for this PR, on a retail title, from
scripts/smoke.ps1as printed. 60 s, release, default settings, A pressed every 4 s from 20 s. RTX 3060 12 GB, Windows 11.main:
this PR:
No device removal or crash. Frames are 102 % of
main's, and peak commit is 100 % ofmain's. The run does not show whether the title reaches the per-lane form on 32-lane hardware, so this is a regression check only.AI use: Claude Code (Claude Opus 5.5) ran both builds and wrote this report.
Imported from ivall/xcl. Originally posted by siam4201 on 2026-11-25T09:24:45Z.
Tested on NVIDIA GeForce RTX 5070 Ti (driver
32.0.16.2101, Ryzen 9 7900X, Rust1.97.1):Tested (
.\scripts\test.ps1)main(568e7db): 1094 passed, 4 failed (fuzz_validate_and_gpu_0..3, pre-existingE_OUTOFMEMORY#1905), 26 ignored; skipped: 14no wave64+ 3per-lane form: refused(V_CVT_F16_F32,V_PK_MUL_F16,V_MUL_F16)pr-2182(c3015b1): 1094 passed, 4 failed (same pre-existingfuzz_validate_and_gpu_0..3), 26 ignored; skipped: 14no wave64(all 3f16per-lane tests now run and pass)Regression run (
.\scripts\smoke.ps1, 30s)main:pr-2182:Not tested
AI use
Imported from ivall/xcl. Originally posted by Victorbriez on 2026-11-25T14:50:26Z.
RTX 3070 check of this PR merged into current
main: the three refused per-lane cases now run and pass, nothing else changes.Tested
main06c9f55as is, and a local merge of headc3015b1intomain06c9f55(merges without conflicts; diff againstmainis the PR's 13 removed lines incrates/xcl/src/gpu/recomp/lower.rs)cargo test --workspace -- --test-threads=4:main06c9f55: 1265 passed, 0 failed, 46 ignored; 27 SKIPPEDf16_programs_on_the_gpu(f16 arithmetic, f16 packed) andf32_programs_on_the_gpu(f32 conversions). Both tests pass, so these cases now match the CPU run of the lowering on this card.pso_measurement_compiles_an_exact_synthetic_record(Developer Mode off, 0x887A002D); 1 ×test_title_draws_with_a_root_signature_under_the_debug_layer(no xgameruntime.dll)Not tested
XCL_PER_LANE=1with a real title was not runc3015b1on its own base568e7db(only the merge into06c9f55)AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:39:41Z.
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!
Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T21:14:56Z.
Independent AMD RDNA4 (native wave64) test report on exact head
c3015b19ad82247000fc0831e8cabd53dae1ee03(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1152 passed, 2 failed, 46 ignored; 2 SKIPPED (heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record).main(gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpuarithmetic/packed andf32_programs_on_the_gpuconversions, both wave32 and native wave64) ran and passed on AMD RDNA4 with zero skips.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T05:52:48Z.
Independent desktop NVIDIA verification of PR #2182 at head
c3015b19ad82247000fc0831e8cabd53dae1ee03(1commit; exact parent & merge-base:568e7db7729c8fa6c8f0f4b32d798faaf11462bb, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseBefore/after per-lane GPU tests & build (
568e7db7->c3015b19)568e7db7:cargo test --release -p xcl --lib -- f16_programs_on_the_gpu f32_programs_on_the_gpu --nocapture2 passed; 0 failed(0.36s), with11SKIPPEDnotices:8no wave64plus3Wave32 per-lane#1426refusals (f16 arithmetic,f16 packed,f32 conversions)c3015b19:cargo test --release -p xcl --lib f16_programs_on_the_gpu -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1123 filtered out× 3 (0.33s,0.27s,0.27s;0Wave32 per-lane refusals — bothf16 arithmeticandf16 packedexecuted on RTX 4060 and matched HLSL;2no wave64skips remain on Wave32-only Ada)c3015b19:cargo test --release -p xcl --lib f32_programs_on_the_gpu -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1123 filtered out× 3 (0.40s,0.36s,0.36s;0Wave32 per-lane refusals —f32 conversionsexecuted on RTX 4060 and matched HLSL;6no wave64skips remain on Wave32-only Ada)c3015b19:cargo test --release -p xcl --lib gpu::recomp::lower_dxil:: -- --test-threads=4(3 consecutive runs)18 passed; 0 failed; 0 ignored; 1106 filtered out× 3 (0.41s,0.42s,0.41s;14no wave64notices across7distinct tests on Wave32-only Ada;0#1426refusals)cargo build --release -p xcl1m 01s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
568e7db7729c8fa6c8f0f4b32d798faaf11462bb, same machine):PR #2182 (
c3015b19ad82247000fc0831e8cabd53dae1ee03):Limits of coverage
V_CVT_F16_F32,V_MUL_F16, andV_PK_MUL_F16fromDIFFERS_ON_1426was verified directly on desktop RTX 4060: Wave32 per-lane#1426refusals dropped from3on parent568e7db7to0onc3015b19, with all three newly unblocked Wave32 programs executing on-GPU and matching HLSL (3/3runs).gpu::recomp::lower_dxil::remain self-skipped (no wave64) on Wave32-only Ada; the 60 s retail smoke confirms zero runtime regression ontitle: 29640639(single-run frame/commit delta vs. parent reflects normal startup variance, not this PR).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by Parakeet-Wheat on 2026-11-30T02:26:42Z.
merge-check
base:
9335bc0d86head:
c3015b19admerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2801 passed, 1 failed, 50 ignored; SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 driver cache needs Developer Mode, 1 no GPU_UPLOAD heaps); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline fails on the base alone too (3 of 3 runs on the base, 3 of 3 on the merge)
review: The diff removes the 13-line
DIFFERS_ON_1426refusal list fromlower.rsand adds nothing. On the same base, our #3474 check (a test-only change) shows 29 SKIPPED, 3 of them "wave32, per-lane form: refused" for #1426. With this PR, those 3 notices are gone and the other 26 SKIPPED stay the same.f16_programs_on_the_gpuandf32_programs_on_the_gpupass, so the per-lane DXIL now runs f16 arithmetic, f16 packed and f32 conversions in wave32. These tests first check the HLSL path's registers against expected values. Then they require the per-lane DXIL to match the HLSL path register for register. In f16 arithmetic, v10 isV_MUL_F16of x · 2^-15, which gives denormal ties, and the check expects the nearest-even result.18423c3(#1742, f16 converts and products round to nearest even) is on main, as the description says.performance: Default path unchanged: the per-lane form runs only with
XCL_PER_LANE=1andXCL_DIRECT_DXIL=1. This check made no title run and no run withXCL_PER_LANE=1.verdict: safe to merge (the 3 per-lane cases it unblocks match the HLSL path on our RTX 3070, a GPU without wave64)
hardware / tool and model: RTX 3070 8 GB (610.88), AMD Ryzen 5 5600X, Windows 11 Home 26300, Rust 1.95.0, debug / Claude Code, Claude Opus 5.5 (merge, build, suite, reruns and review)
Imported from ivall/xcl. Originally posted by johnbf8x on 2026-11-30T02:48:16Z.
merge-check claim
head:
c3015b19adImported from ivall/xcl. Originally posted by johnbf8x on 2026-11-30T03:05:23Z.
merge-check
base:
cb8024684chead:
c3015b19admerge: clean (git merge --no-commit --no-ff onto origin/main in a detached worktree; the merged tree was tested uncommitted)
build: cargo build --workspace -> ok (the PR merged and main alike, each in its own target dir)
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> main and PR the same: 137 passed, 2 failed, 20 ignored outside the lib; the lib binary ends abnormally on both (0x80004005), so no lib total. SKIPPED: main 28 (22 no wave64, 3 per-lane forms refused, 2 no heap windows, 1 no D3D12 debug layer), PR 25: the three "wave32, per-lane form: refused (... its #1426 semantics differ from the console's)" lines (V_CVT_F16_F32, V_MUL_F16, V_PK_MUL_F16) are gone, the other 25 are the same. Failing: e2e test_title_draws_with_a_root_signature_under_the_debug_layer and test_title_runs_under_the_debug_layer_with_dred (no D3D12 debug layer on this PC), both fail on main too. The lib in parts: hle::d3d12x::list_x alone on 1 thread 113 passed on both; the rest on 4 threads, 0 failed before the process ends on both (PR 1741 ok, main 1743 ok). gpu::recomp::lower_dxil::tests:: on 1 thread: 26 passed, 0 failed on main and on the PR in 3 of 3 runs; on the PR f16_programs_on_the_gpu and f32_programs_on_the_gpu now run f16 arithmetic, f16 packed and f32 conversions in their per-lane form in wave32 and match the HLSL path
review: none blocking, after reading the whole diff (lower.rs, 13 lines removed, nothing added). The list was there for #1426's old rounding;
18423c3(#1742, "round direct-DXIL f16 converts and products to nearest-even", covering exactly V_CVT_F16_F32, V_MUL_F16 and V_PK_MUL_F16) is on main, so the reason for the list is gone. The refusals that remain in front of it (partial-lane FREXP denormal mode writes and the rest) are untouched. Not covered here: wave64 (no wave64 on this GPU) and a title that uses these instructionsperformance: none expected by default; programs with these three instructions now take the per-lane form where they used to take the fallback (reasoned, not measured). It changes a translator source, so every tester re-translates all shaders once
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3070 Ti 8 GB (driver 621.40), Intel Core i7-12700K, Windows 10 Pro 19045, rustc 1.100.0 / Claude Code, Claude Opus 5.5