Recompiler: simplify direct DXIL typed-buffer component decoding #1729
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1739"
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 coolpersonnn on 2026-11-24T20:05:50Z.
Part of #1269. This rebase keeps the narrow-load selection, descriptor caching and packed-float conversion already in main from
0b64aa0. It carries forward the original patch's single-dword extraction, shared normalization and fixed-format specialization.What is in it
lower_mem.rs.Tested
b488696on Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, rustc 1.100.0 and DXC 1.8.2502.11..\scripts\test.ps1withXCL_ADAPTER=nvidiareported 962 passed, 0 failed and 43 ignored. The harness reported 23 GPU skips.XCL_SAMPLE_*fixtures were unset for the rebased suite.GPU coverage skips on the rebased head
Regression run
Main
PR head
Not tested
AI use
gemini-pro-orchestrator-neon) wrote and tested the original implementation. Codex (GPT-6 family, exact model variant unavailable) resolved the rebase, adapted the decoder to main, and ran the checks for this head.[PR #1739] Recompiler: direct DXIL decodes only requested buffer format componentsto [PR #1739] Recompiler: simplify direct DXIL typed-buffer component decodingImported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T22:19:08Z.
Full-suite run, since this PR has no test report yet. Tested exact head
b488696(on its base266b845).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record --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: 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.buffer_format_components_fit_in_one_dword,buffer_load_format_decodes_only_requested_components_and_folds_constants,buffer_load_format_direct_gpu.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 962 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).--skipon NVIDIA. All fail on main too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651); the fourlower_dxil*_programs_on_the_gputests skip with a "no wave64" reason the exemption does not match (follow-up on #1651);pso_measurement_compiles_an_exact_synthetic_recordfailed this way while Developer Mode was off here. The AMD run does not setXCL_REQUIRE_GPU.c163d86with another PR's suite running on the machine, failedhle::kernelx::tests::fine_timer_makes_short_sleeps_short(aSleep(1)timing check, sensitive to load). The run above was alone on the machine.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:44:04Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T00:46:38Z.
Focused heap-window test of rebased head
b488696e62a41cef17f98f15d65135be2432a851on Windows. A synthetic formatted-load shader produced the expected output on both GPUs and was 6.7–7.3% smaller through direct DXIL compared with its immediate parentc4d37bec1bb4286eb373aea963404a23f13401fa.Tested
XCL_ADAPTER.XCL_DIRECT_DXIL=all XCL_HEAP_WINDOWS=1withcargo test --locked -p xcl --lib gpu::dxil::core_tests::buffer_load_format -- --test-threads=1 --show-outputgave 2 passed, 0 failed, 0 ignored on each GPU. With the same flags,cargo test --locked -p xcl --lib memory_windows -- --test-threads=1 --show-outputgave 6 passed, 0 failed, 0 ignored on each GPU. No skips in either filter.cargo test --locked -p xcl --test format_windows_gpu_probe -- --exact formatted_loads_use_latest_descriptor_across_windows --test-threads=1 --nocapturegave 1 passed, 0 failed, 0 ignored per invocation, no skips. The shader reused the same SGPRs for two descriptors, then checked narrow, wide, D16 and out-of-bounds reads from 16-bit float and swizzled 8-bit normalized data in separate memory windows. Across wave32, the adapter's wave64 form, switch and heap windows, and both translators, 4,608/4,608 output dwords matched the CPU reference per GPU and revision. All direct shaders passed DXIL validation. The fixture was removed from both worktrees.Not tested
The full workspace suite on this rebased head in my setup, retail behavior, or driver compile times.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) ran and verified the tests and wrote this report.
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:38:28Z.
Triage (#1607) – head
b488696Main has made the same simplification in other code.
bits_atreads a component from one dword ("Every component of a supported buffer format fits in one dword").fmt_decode_valdecodes unorm/snorm with one sharedfdivand selects the float path once (e18e7b2"share normalized and packed float buffer decode paths",0b64aa0).fmt_comp_dyndecodes only the requested components, andfmt_comp1takes the MTBUF format as a constant.The PR conflicts with that code and its
Build and testcheck fails. #2161 (rotate/FFT swizzles) is unrelated despite the similar title.Recommendation: close (superseded by main commits
e18e7b2and0b64aa0).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed