Repository navigation
Conversation
|
Independent Radeon and RTX 5090 verification of Tested
Not tested Submitted in-flight work outside the unit fixture, the parent, retail smoke and the full workspace suite. AI use OpenAI Codex (GPT-6.2 Sol) adapted the test's adapter lookup, ran the tests and wrote this report. |
|
Passes on NVIDIA with the D3D12 debug layer installed. The e2e debug-layer messages are the same as on Tested: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug, Graphics Tools (D3D12 debug layer) installed. Head
Both come from the fixture: The e2e title does not reach Not tested: a title with AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch debug-layer check, and wrote this report. |
…SOs in dispatch_chain Two runtime lifetime fixes in `real/dispatch_chain.rs` (follow-up to xcl-dev#2080): 1. When `alloc_pool::enabled()` is true and `alloc_pool::recording_backing(list)` returns `None` (e.g., console command lists and bundles not registered in `alloc_pool`), fall back to the caller's `allocator` instead of `0` so console-list split compute dispatches do not unconditionally degrade to the synchronous unsplit `chain.whole()` fallback. 2. Retain `Arc<Chain>` in `RECORDINGS[allocator]` whenever `allocator != 0` on both the `dispatch()` `whole` fallback and `ExecuteIndirect`'s `dispatch_chain::whole(list, pso, allocator)` path (deduplicating per allocator and dropping any duplicate `Arc<Chain>` outside `RECORDINGS.lock()`), so releasing the PSO (`forget(pso)`) while the command list is still in flight does not destroy the bound `whole` `ID3D12PipelineState` before `allocator_reset(allocator)`. Part of xcl-dev#2088 Part of xcl-dev#1269 Assisted-by: Google Antigravity (Gemini 4 Neon)
|
Independent RX 6800M check on exact head Tested
This adds a discrete RDNA2 and older AMD driver to the existing Radeon/NVIDIA checks. I did not run the full workspace suite or a retail-title smoke comparison for this PR, and these focused tests do not cover an in-flight console command list. AI use: OpenAI Codex (GPT-6) ran the checks and prepared 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).
af0b667 to
e406771
Compare
|
Thank you @nnonno91, @fromthemoonx, and @luckyteagirl for testing across RTX 5090, RX 7900 XTX / Arc A770, and RX 6800M! Rebased
|
What is in it
Follow-up to #2080 (
Part of #2088,Part of #1269) fixing two runtime allocator/lifetime bugs incrates/xcl/src/hle/d3d12x/real/dispatch_chain.rsandcrates/xcl/src/hle/d3d12x/bind.rs:alloc_pool: Extractedresolve_allocator(resolve_allocator_with) so whenalloc_pool::enabled()is true andalloc_pool::recording_backing(list)returnsNone(as for console command lists created viadev_create_command_list_xand bundles),dispatch_chainfalls back to the caller'sallocatorinstead of0. Previously, zeroing the allocator forced every console-list split compute dispatch onto the synchronous unsplitchain.whole()fallback.Arc<Chain>(and its boundwholePSO) untilallocator_reset: ChangedRecording::{scratch, first}toOption<Arc<Scratch>>/Option<ID3D12PipelineState>, updateddispatch_chain::whole(list, pso, allocator)(and itsbind.rs:318ExecuteIndirectcallsite), and addedretain_whole(allocator, chain)on both thedispatch()wholefallback andExecuteIndirect'swhole()path. Wheneverallocator != 0,Arc<Chain>is retained inRECORDINGS[allocator](deduplicated per allocator, dropping any duplicateArc<Chain>outsideRECORDINGS.lock()) soforget(pso)while the command list is still in flight does not destroy the boundwholeID3D12PipelineStatebeforeallocator_reset(allocator).(Rebased onto
origin/main08294413to integrate cleanly withe9ddf17/0829441slabbed bounded scratch (Option<Arc<Scratch>>+SLABS+record_dispatch_chain). Also updated thedispatch()fallback test fixture to use aD3D12_COMMAND_LIST_TYPE_BUNDLElist withSetComputeRootSignature(&rs)and[1, 1, 1]groups so it deterministically exercises thewholefallback regardless of VRAM size and avoids debug-layer ID 952/1296 messages noted by@fromthemoonx.)Tested
cargo test --release -p xcl --lib hle::d3d12x::real::dispatch_chain::tests:: -- --test-threads=1 --nocapture): confirmed unmodifieddispatch()wholefallback failedwhole_fallback_retains_chain_until_allocator_reset_preflight(0 passed; 1 failed—Chainand itswholePSO dropped immediately onforget(pso)).cargo test --release -p xcl --lib hle::d3d12x::real::dispatch_chain::tests:: -- --test-threads=1 --nocaptureon NVIDIA GeForce RTX 4060 (0.23 s) and underXCL_ADAPTER="Microsoft Basic Render Driver"(0.19 s):3 passed, 0 failed, 0 ignored(0skipped), includinga_chains_scratch_is_bounded_by_what_all_recordings_holdand:untracked_list_keeps_caller_allocator_when_alloc_pool_is_enabled(pure CPU): verifies untracked lists retain callerallocatorwhenalloc_poolis enabled, tracked lists still resolve theirrecording_backing, and disabled pool uses callerallocator.whole_fallback_and_indirect_retain_chain_until_allocator_reset(D3D12,skip_test-guarded): exercises bothdispatch()'swholefallback (on a real bundle with root signature set and[1, 1, 1]groups) and repeatedExecuteIndirectwhole()calls on a realDIRECTcommand list, verifyingArc<Chain>stays alive acrossforget(pso)without duplicateRECORDINGSentries, releases cleanly onallocator_reset, and closes cleanly.cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocaptureon RTX 4060):23test binaries,1274 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 indispatch_chain).Regression run
Paired 60 s
scripts/smoke.ps1runs on the same RTX 4060 host againstorigin/main(082944135cd2b96288470a595861fa608eee08dc) and PR head (e406771b8ad3e1aff1525ca03dbd146edd157b8c):Baseline (
origin/main):PR head:
Not tested
XCL_CONSOLE_LISTS=1or D3D12 debug-layer execution (d3d12SDKLayers.dllis not installed on this host; allocator fallback andwholePSO lifetime retention are verified directly by the unit/D3D12 tests).AI use
Implemented and verified with Google Antigravity (Gemini 4 Neon).
Part of #2088
Part of #1269