Repository navigation
D3D12.X: global shader-visible sampler heap, typed UAV validation, and occlusion/query VA fixes - #1991
D3D12.X: global shader-visible sampler heap, typed UAV validation, and occlusion/query VA fixes#1991raylitebull wants to merge 1 commit into
Conversation
|
A data point for the 2-plane path, from the retail title in Series S mode on Windows (RTX 3060 Laptop, NVIDIA
Glad to test this PR on the same setup when it is ready. AI use: Claude Code (Claude Opus 5.5). |
|
Overlap note: full credit to #615 (@0x6461726B) for multi-plane We will drop the duplicate |
|
Technical review findings: Blocking
Major
|
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
fbbd982 to
71639e0
Compare
|
Thanks for the thorough review and pointers, Updated
Verified locally ( |
|
Regression run for this PR: head main this PR: No device removals or crashes; 99 % of main's frames, 104 % of its peak commit. Not tested: the whole suite; world loading; whether the title reaches all of the changed code in these 60 s (default settings: Written with Claude Code (Claude Opus 5.5) from runs on this machine. |
PR #1991 empirical verificationTested
What is in it
Tested
cargo test -p xcl --lib -- --show-output shared_sampler_pages_preserve_zero_slot_and_clamp_tails uav_format_promotion_and_linearization occlusion_tracks_dropped_draws_and_active_counter default_bound_heaps_always_includes_sampler_heap_when_available nested_occlusion_queries_end_the_outer_one_early resolve_query_data_applies_buffer_delta_to_pc_resolve_and_occlusion_writebackOne full suite run under the shared GPU lock: Set-ExecutionPolicy -Scope Process Bypass -Force
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output }
All Not tested
AI use Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Fixes three D3D12.X runtime issues across shared sampler heaps, typed UAV validation, and occlusion/query tracking (multi-plane
PresentXcompositing has been dropped from this PR and deferred cleanly to #615):console_heap.rs,list_x.rs,real.rs): enables a shared PC sampler heap (shared_sampler_heap,global_sampler_heap,SAMPLER_PAGE_SLOTS = 8with overflow mapped cleanly to reserved zero-sampler slot0), tracksBindings::has_sampler_heapsodefault_bound_heapsalways bindsGLOBAL_SAMPLEReven alongside non-global view heaps orheap_windows() == false, and avoids short-circuiting CPU-only sampler heaps inset_descriptor_heaps_x.device_x.rs,real.rs): addsdev_create_uav_checked_x(pc_uav_linear_format,pc_typed_uav_supportedkeyed byGetAdapterLuid(), handlingdesc == NULL/Format == 0sRGB/view mapping and matching null-viewViewDimensionto resource dimension) to bind a null view when host hardware lacksTYPED_UNORDERED_ACCESS_VIEWsupport, plus writing a valid null PC buffer SRV indev_create_srv_xwhenbuffer_delta != 0.resolve_query_data_xtracking (list_x.rs,bind.rs): tracks active occlusion query state and dropped draws (note_dropped_draw) so skipped draws andresolve_query_data_xstay coherent, guardingorig_fnwithreal::is_adopted(falling back toGetGPUVirtualAddress) and aligningunbinding_all_heaps_lets_the_shared_heap_be_bound_againwith shared sampler heap binding.Part of #1833.
What is in it
crates/xcl/src/hle/d3d12x/console_heap.rs,list_x.rs,bind.rs,device_x.rs,real.rs(5files;0changes inpresent.rs):shared_sampler_pages_preserve_zero_slot_and_clamp_tailsuav_format_promotion_and_linearizationocclusion_tracks_dropped_draws_and_active_counterdefault_bound_heaps_always_includes_sampler_heap_when_availableTested
rustc 1.99.1 (58cf8f9c3 2026-10-13), rebased cleanly onto0f293be(71639e0).cargo check --workspace --tests: passed.XCL_ADAPTER=warp cargo test -p xcl --lib hle::d3d12x:: -- --test-threads=4: passed (shared_sampler_pages_preserve_zero_slot_and_clamp_tails,uav_format_promotion_and_linearization,occlusion_tracks_dropped_draws_and_active_counter,default_bound_heaps_always_includes_sampler_heap_when_available, andunbinding_all_heaps_lets_the_shared_heap_be_bound_againincluded and passed).Regression run
scripts/smoke.ps1pair on71639e0vs0f293behas not been run locally. AMD and NVIDIA reviewers are invited to test on71639e0vs0f293be(includingscripts/smoke.ps1and shared sampler heaps / typed UAVs) and post results in the comments.Not tested
scripts/smoke.ps1pair on71639e0, fullcargo test --workspacesuite, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton.AI use