Recompiler: simplify direct DXIL typed-buffer component decoding #1739
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1739
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@coolpersonnn on GitHub · 2026-11-24 20:05 UTC · original
coolpersonnn:dxil/format-load-decode→main· +223 −47 · 3 files · 1 commits · openPart 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.@futurepro62 on GitHub · 2026-11-24 22:19 UTC · original
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
@DavidM1911 on GitHub · 2026-11-24 22:44 UTC · original
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!
@nnonno91 on GitHub · 2026-11-25 00:46 UTC · original
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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.