Repository navigation
Conversation
… dispatches Track `(bound_heaps, has_sampler_heap)` across `HEAPS_MARKER` records in `console_list::close()` (clearing both via `SetDescriptorHeaps(&[])` when `n == 0` to match `list_x::set_descriptor_heaps_x`) and call `ensure_dispatch_heaps` before translated compute dispatches. `ensure_dispatch_heaps` mirrors `list_x::default_bound_heaps` via a pure `default_dispatch_heaps` helper, lazily creates `shared_sampler_heap` via `list.GetDevice()` when missing (filtering heaps to the list's device), binds both view and sampler heaps when 0 heaps are bound (or sampler alone when `!heap_windows()`), and upgrades 1-heap bindings missing a view or sampler heap so directly-indexed translated pipelines (`SAMPLER_HEAP_DIRECTLY_INDEXED`) never dispatch with 0 sampler heaps bound. Assisted-by: Google Antigravity (Gemini 4 Neon)
|
AMD run, plus an RTX 3060: the new GPU test passes on both, and nothing else in the GPU suite changes. Head
Not tested: a title with |
|
Independent Radeon check of Tested
Not tested Retail smoke, the full workspace suite, and GPU shader output from a translated dispatch in this check. AI use OpenAI Codex (GPT-6.2 Sol) adapted the test fixture, ran the checks and wrote this report. |
…#2296, xcl-dev#2297, xcl-dev#2320, xcl-dev#2323, xcl-dev#2329, xcl-dev#2333 Integrates shader heap-base addresses (xcl-dev#1803), fenced superseded texture unmaps (xcl-dev#2270), cross-queue VRAM heap reclamation fencing (xcl-dev#2275, using create_raw_fence under Wine), PcCall frame clamping and orphan PSO drop (xcl-dev#2296), PSO pointer guards (xcl-dev#2297), KickoffX idle spare list switching (xcl-dev#2320, preserving UnadoptGuard), console-list descriptor heap binding (xcl-dev#2323), ClearUnorderedAccessView PC handles (xcl-dev#2329), and dispatch_chain PSO retention (xcl-dev#2333).
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
What is in it
Follow-up to #1991 in
crates/xcl/src/hle/d3d12x/console_list.rs:HEAPS_MARKER: Replaces the singleheaps_set: boolflag inconsole_list::close()with(bound_heaps: Vec<ID3D12DescriptorHeap>, has_sampler_heap: bool). WhenHEAPS_MARKERhasn == 0,close()now clears the command list viaSetDescriptorHeaps(&[])and clears(bound_heaps, has_sampler_heap)to matchlist_x::set_descriptor_heaps_x; whenn > 0, it records the bound heaps returned bylist_x::pc_heapsand whether a sampler heap is among them.default_dispatch_heapshelper (mirroringlist_x::default_bound_heaps) and callsensure_dispatch_heaps(&list, &mut bound_heaps, &mut has_sampler_heap)before each translated compute dispatch. When fewer than 2 heaps are bound,ensure_dispatch_heapslazily initializesconsole_heap::shared_sampler_heapvialist.GetDevice()if needed, filters shared heaps to the list's device, binds both view and sampler heaps when 0 heaps are bound (or sampler alone when!pso::heap_windows()), and upgrades 1-heap bindings missing either a view or sampler heap so directly-indexed translated pipelines (SAMPLER_HEAP_DIRECTLY_INDEXED) never dispatch with 0 sampler heaps bound.Tested
cargo test --release -p xcl --lib hle::d3d12x::console_list::tests:: -- --test-threads=1 --nocaptureon NVIDIA GeForce RTX 4060 and underXCL_ADAPTER="Microsoft Basic Render Driver"/XCL_ADAPTER=warp:7 passed, 0 failed, 0 ignored(0skipped), including:default_dispatch_heaps_binds_and_upgrades_missing_view_or_sampler(pure CPU): covers 0-heap binding under bothheap_windowsmodes (Some(view)andNone), 1-heap view->view+sampler and sampler->view+sampler upgrades, no-op when satisfied, and(None, None).gpu_ensure_dispatch_heaps_binds_view_and_sampler_heaps(D3D12,skip_test-guarded): exercisesensure_dispatch_heaps_withon a realID3D12GraphicsCommandListacross 0-heap bind, idempotent repeat call,SetDescriptorHeaps(&[])reset +!heap_windowssampler-only bind, 1-view-heap upgrade, 1-sampler-heap upgrade, andlist.Close().cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocaptureon RTX 4060):23test binaries,1267 passed, 0 failed, 46 ignored(28pre-existing hardware/debug-layerSKIPPED:21no wave64on 32-lane GPU,3wave32 per-lanerefused,2missing D3D12 debug layer,1driver cache toggle,1no heap windows;0skipped inconsole_list).Regression run
Paired 60 s
scripts/smoke.ps1runs on the same RTX 4060 host againstorigin/main(06c9f5505f63f10c5ec49ef932d75b2c28177324) and PR head (a78ffa89f64c31ed248b1e643e6ebb6c1b31455f):Baseline (
origin/main):PR head:
Not tested
XCL_CONSOLE_LISTS=1enabled (default smoke runs withoutXCL_CONSOLE_LISTS=1; descriptor-heap binding logic is verified directly by the unit and D3D12 command-list tests).d3d12SDKLayers.dllis not installed on this host).AI use
Implemented and verified with Google Antigravity (Gemini 4 Neon).