Repository navigation
Recompiler: simplify typed buffer component decoding - #1647
coolpersonnn wants to merge 1 commit into
Conversation
|
Independent AMD check at Tested
The generated DXIL for that one synthetic dynamic-format shader was smaller in all four builds:
Not tested Heap-window mode, retail shader packs and title smoke, compile or pipeline timings. AI use OpenAI Codex (GPT-6 family, exact variant unavailable) adapted the temporary probe, ran the tests, and drafted this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Each supported format component fits in one dword. Extract it directly, share the signed and unsigned normalization, and expand packed floats with their IEEE exponent and mantissa bits. This reduces the code DXC inlines for every dynamic formatted buffer read. Against 9e3831e on an RTX 5090, one compute pipeline's cold build went from 17.04 to 13.30 seconds (two runs per build). A large -O0 shader's DXIL dropped from 29,750,432 to 26,752,196 bytes. Part of xcl-dev#1269 Assisted-by: Codex (GPT-6 family, exact model variant unavailable)
a632fbb to
f860750
Compare
|
Test report for exact head Tested
main: PR: Not tested: AMD, the head merged onto current AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built. |
|
NVIDIA and AMD full-suite run, to go with the reports above by throny, since none of them covers AMD. Tested exact head Tested
Not tested
AI use
|
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
merge-check claim |
|
merge-check claim |
|
merge-check |
|
merge-check |
|
No open or merged PR makes the same change. #1840, #1310, #1901 and #2210 also edit AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Part of #1269. Simplify the HLSL inlined for each dynamic typed-buffer component on the default translation path and the fallback from #1426. Each supported component fits in one dword, so the decoder can extract it directly, share signed and unsigned normalization, and expand the small packed floats without exponentiation.
What is in it
crates/xcl/src/gpu/recomp/emit.rsemits the smaller component decoder.crates/xcl/src/gpu/recomp/tests.rschecks the format table and verifies decoded values from unaligned buffers on the GPU at-O0and-O3.Tested
f860750on 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 961 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
The original measurements below were taken before this rebase.
.\scripts\test.ps1withXCL_ADAPTER=nvidiaandXCL_SAMPLE_RPFset reported 860 passed, 0 failed, 42 ignored. GPU skips weregpu_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).9e3831e. Ranxcl shaders <dir> --precompile --only cs --windows 4 --split 1, then--pipelinesagainst the populated DXIL cache with XCL's PSO disk cache off. One format-heavy sample went from 427,204 to 386,108 DXIL bytes and from 17.04 to 13.30 s in the cold pipeline pass (median of two cold runs per build, one cached pair excluded). The giant-O0sample went from 29,750,432 to 26,752,196 bytes and from 129.72 to 118.35 s for translation plus DXC. Both driver passes exceeded 90 s.Regression run
Main
PR head
Not tested
AI use
Codex (GPT-6 family, exact model variant unavailable) profiled the workload, wrote the code and tests, ran the checks, and prepared this description.
T3 Code / Antigravity resolved the current rebase. Codex (GPT-6 family, exact model variant unavailable) verified the resolution, reran the checks, and updated this description.