Repository navigation
D3D12.X: clear BlendEnable on integer RTVs, strip unsupported UAVs, set T# levels, and pipeline PresentX - #1988
raylitebull wants to merge 1 commit into
Conversation
|
Technical review findings: Blocking
Major
(The integer RTV blend sanitization and SRV T# mip/MSAA metadata parts look clean and would be easy to land if split out.) |
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
…ip/MSAA levels, and pipeline PresentX
505e974 to
587d77b
Compare
|
Thanks for the thorough review and catch, Updated
Verified locally ( |
|
Regression run for this PR: head main this PR: No device removals or crashes; 101 % of main's frames, 100 % 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. |
Empirical verification of xcl-dev/xcl PR #1988
Tested
Not tested
AI use
Workspace
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Fixes four D3D12.X / PC translation mismatches across graphics pipelines, resource allocation, texture views, and presentation:
real.rs): clearsBlendEnable/LogicOpEnableonUINT/SINTrender target slots acrossCreateGraphicsPipelineState,CreatePipelineStatestreams, translated GS/MS streams, and direct DXIL pipelines (sanitize_integer_rt_blend).device_x.rs,real.rs): checksis_typeless_uav_formatfirst and queriesD3D12_FEATURE_FORMAT_SUPPORTper device+format (uav_format_supported_by_caps,device_format_supports_uav) to stripALLOW_UNORDERED_ACCESSon MSAA or host-unsupported formats acrossGetResourceAllocationInfo(pc_allocation_size),create_placed_resource_x,dev_create_committed_resource_x, and initial state mapping (pc_resource_desc_for_device,pc_initial_state_for_desc).real.rs): populates GFX10BASE_LEVEL(t[3][15:12]),LAST_LEVEL(t[3][19:16], orlog2(SampleDesc.Count)for MSAA), andMAX_MIP(t[5][7:4]) insrv_tsharp_from_desc/view_shape_desc.PresentX(present.rs): integrates aPresenter-owned 2-slotPresentRing/PresentPipeover a 3-buffer swap chain (XCL_PRESENT_SYNC=1forces 1 slot) withslot_dumpsfence-safe readback tracking andDropfence draining.Part of #1833.
What is in it
crates/xcl/src/hle/d3d12x/device_x.rs:is_typeless_uav_format-first ordering inuav_format_supported_by_caps/device_format_supports_uav,texture_format_allows_uav,strip_unsupported_uav_for_device,pc_resource_desc_for_device,pc_initial_state_for_desc, pluspc_resource_desc_strips_uav_on_unsupported_formats_and_msaa.crates/xcl/src/hle/d3d12x/present.rs:Presenter-ownedPresentPipe/PresentRing(slot_dumps,prepare_pipelined_slot,mark_pipe_drained,Dropdrain) andpresent_ring_overlaps_previous_frame_and_drains_cleanly.crates/xcl/src/hle/d3d12x/real.rs:view_shape_desc,srv_tsharp_from_desc,sanitize_integer_rt_blend,pc_allocation_size/create_placed_resource_x/dev_create_committed_resource_xUAV sanitization, pluspso_blend_and_tsharp_tests.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13), rebased cleanly onto0f293be(587d77b).cargo check --workspace --tests: passed.XCL_ADAPTER=warp cargo test -p xcl --lib hle::d3d12x:: -- --test-threads=4: passed (pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa,present_ring_overlaps_previous_frame_and_drains_cleanly, andpso_blend_and_tsharp_testsincluded and passed).Regression run
scripts/smoke.ps1pair on587d77bvs0f293behas not been run locally. AMD and NVIDIA reviewers are invited to test on587d77bvs0f293be(includingscripts/smoke.ps1and graphics/MSAA/PresentX workloads) and post results in the comments.Not tested
scripts/smoke.ps1pair on587d77b, fullcargo test --workspacesuite, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton.AI use
0f293be, and unit tests; the author reviewed the diff and test output.