Repository navigation
Recompiler: load direct DXIL geometry ES inputs from the heap window - #2383
Conversation
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
|
Update for head AMD native wave64 run (listed as untested), plus an RTX 3060, paired against Head
Per-test comparison: on both cards the only difference is the new Not tested: a title with |
…cl-dev#2088) When XCL_HEAP_WINDOWS=1 is active with multiple memory windows, mem_windows() populates lw.mems with placeholder i32 0 handles so all memory accesses route through heap_raw_buffer_uav(). geom_init() bypassed this and called raw_load(lw.mems[0], ...), failing DXIL generation for any direct-DXIL geometry shader that reads pre-fetched ES vertex inputs (v9..v255). Load window 0 from ResourceDescriptorHeap[MEM_HEAP_BASE] lazily when lw.heap_mem is set, and add a validation + GPU execution test. Assisted-by: Antigravity (Gemini 4 Neon)
f05fe12 to
25af00e
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin |
|
Whole-suite NVIDIA run of
Tested
Not tested
AI use: Claude Code. Claude Opus 5.5 ran the two jobs, compared the logs and wrote this; a second Claude Opus 5.5 checked it against the logs and the live PR; Claude Fable 5.2 reviewed the text. |
|
Thanks for testing! That failure was a pre-existing Verified on current head |
|
Independent Windows/NVIDIA integration check of #2383 head 25af00e on main 06055a7. The local Tested
Not tested: retail smoke on this integration, AMD/Intel, or performance. The PR still needs its author's current-head regression run and rebase under the repository rules. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the checks and drafted this report. |
|
Merging: geometry shaders take their pre-fetched ES inputs from window 0 in the descriptor heap under Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug: AI use: Claude Code (Claude Opus 5.5) read the diff and the thread, ran the tests and wrote this on the maintainer's behalf. |
…puts Three clean improvements to Direct DXIL heap memory windows: - Default pso::heap_flat() to on (opt-out with XCL_HEAP_FLAT=0) now that branchless Direct DXIL heap reads are verified stable on AMD RDNA4 (cutting PHIs 20x in large compute shaders). - Remove the !gfx restriction in dxil/kernel.rs so Direct DXIL VS and PS stages also emit branchless heap reads instead of per-load branches and handle PHIs. - Port #2383 in geom_init so ES+GS pre-fetched vertex inputs read from heap window 0 (MEM_HEAP_BASE) when HEAP_WINDOWS is active, with regression test in geometry_tests.rs. Assisted-by: Antigravity (Gemini 4 Neon High)
Fixes direct DXIL geometry-shader translation when
XCL_HEAP_WINDOWS=1is active with multiple memory windows. Part of #2088.When
HEAP_WINDOWSis set andmem_windows > 1,mem_windows()incrates/xcl/src/gpu/dxil/kernel.rsfillslw.memswith placeholderi32 0handles because all memory accesses are expected to go throughheap_raw_buffer_uav().geom_init()bypassed this and calledlw.s.raw_load(lw.mems[0], ...)to load pre-fetched ES vertex inputs (v9..v255), which failed DXIL generation (function dx.op.rawBufferLoad.i32 redeclared with another type).What is in it
crates/xcl/src/gpu/dxil/kernel.rs: lazily load the window-0 raw UAV fromResourceDescriptorHeap[MEM_HEAP_BASE]viaheap_raw_buffer_uav()ingeom_init()whenlw.heap_memisSome(coherent).crates/xcl/src/gpu/dxil/geometry_tests.rs: addgeometry_es_inputs_validate_and_run_with_heap_windows(fails before the fix; validates native + split wave64 forms and runs on the GPU after the fix).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, debug (tests) / release (smoke).cargo test -p xcl --lib geometry_tests(rebased head25af00eon2898511): 4 passed, 0 failed, 0 ignored.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4(before rebase onto2898511): 1285 passed, 5 failed, 46 ignored.main50a9fdeon this adapter/DXC:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3(CreateComputePipelineState: 0x8007000E) andgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier.SKIPPED: wave64-only GPU tests (no wave64 on RTX 5090), per-lane f16 refused tests,heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows in default run),pso_measurement_compiles_an_exact_synthetic_record(Developer Mode off).XCL_HEAP_WINDOWS=1 cargo test -p xcl --test gpu_compute_e2e -- --test-threads=1: 4 passed, 0 failed, 0 ignored (includingheap_window_out_of_memory_falls_back_to_the_switch_form).Regression run
60 s release runs of the same title with a warm local DXIL cache (
XCL_NETWORK=0, default runtime flags):Not tested
f05fe12).XCL_DIRECT_DXIL=1+XCL_HEAP_WINDOWS=1geometry shaders directly (covered by the new GPU unit test).AI use