D3D12.X: default DepthEnable to false in stream_pipeline when DSVFormat is UNKNOWN #1772
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1772
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1772/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@AlpPesen on GitHub · 2026-11-24 20:31 UTC · original
AlpPesen:fix/stream-pipeline-depth-default→main· +68 −1 · 1 files · 1 commits · merged 2026-11-25 00:21 UTCFixes
real::stream_pipelinesoDepthStencilState.DepthEnabledefaults tofalsewhen aD3D12_PIPELINE_STATE_STREAM_DESComits theDEPTH_STENCIL/DEPTH_STENCIL1/DEPTH_STENCIL2subobject andDSVFormatisDXGI_FORMAT_UNKNOWN(0).Previously
stream_pipelineunconditionally initializedDepthEnable = true, violating D3D12 pipeline state stream defaults for graphics streams that neither bind a depth-stencil view nor supply a depth-stencil subobject.Part of #1488 (
XCL-BT-034).What is in it
crates/xcl/src/hle/d3d12x/real.rs:11,21,26) was present instream_pipeline.g.DepthStencilState.DepthEnable = false.into()when!has_depth_stencil && g.DSVFormat.0 == 0(DXGI_FORMAT_UNKNOWN). Streams with a non-UNKNOWNDSVFormatcontinue to defaultDepthEnable = true, and explicit depth-stencil subobjects are always preserved.stream_pipeline_defaults_depth_enable_from_dsv_formatcovering omitted/UNKNOWNDSVFormat, non-UNKNOWNDSVFormat, and explicitDEPTH_STENCILsubobjects.Regression run
Baseline (immediate parent
mainb9b6ea6, warm shader/PSO cache):This PR (
fix/stream-pipeline-depth-default, warm shader/PSO cache):Tested
Hardware: Windows 11 Pro for Workstations (Build 26300), Intel Core i9-9900K, 32 GB RAM, AMD Radeon RX 6800 (16337 MiB VRAM, Driver
32.0.21045.29003),rustc 1.100.0 (0ef1bc386 2026-11-09).cargo test -p xcl --lib stream_pipeline_defaults_depth_enable_from_dsv_format:1 passed; 0 failed; 0 ignored; 0 skipped.XCL_REQUIRE_GPU=wave64,mesh cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4:885 passed; 5 failed; 42 ignored; 0 skipped(3 pre-existing RDNA2placed_title_textures_share_vram_and_preserve_pixels+VRAM_TEST_LOCKcascades tracked in #470, plus 2 unrelated skip-gated tests that fail whenXCL_REQUIRE_GPUis set:pso_measurement_compiles_an_exact_synthetic_recordneeding Windows Developer Mode andheap_window_out_of_memory_falls_back_to_the_switch_formneedingXCL_HEAP_WINDOWS=1)..\scripts\smoke.ps1 -Game '<game folder>\YouKnowWho'onb9b6ea62080cc62fc19e212033372d01c6214e5candfa567957075adedf382f0d2d9ef9d967ea3b914e(see Regression run above).Not tested
AI use
Antigravity (Gemini 4 Neon) implemented the
DepthEnabledefault check and unit test incrates/xcl/src/hle/d3d12x/real.rs, and ran the full test suite and paired smoke runs.@frenziedcoder on GitHub · 2026-11-24 20:55 UTC · original
NVIDIA test report for
fa56795: the description's runs were Linux / Wine on an RX 6800, so here is native Windows on NVIDIA. Full suite green, the PR's own test passing, and a clean smoke pair (1654 vs 1654 frames).Tested
stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact headfa567957075adedf382f0d2d9ef9d967ea3b914e, no local changes.cargo build --workspace && cargo test --workspace -- --test-threads=4(debug): 890 passed, 0 failed, 42 ignored;stream_pipeline_defaults_depth_enable_from_dsv_formatpasses. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Regression run (
scripts/smoke.ps1 -Seconds 60, release, the retail title of #505 at its start screen;XCL_PSO_PRELOAD=0for both builds, because this machine's preload list holds the program of #1307)base (
4178e88, this PR's base; the same base run as in my report on #1747):this PR:
Not tested: a title that creates stream pipelines without a depth-stencil subobject (I don't know whether this one does at its start screen); AMD on Windows; Wine on NVIDIA.
AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.
@DavidM1911 on GitHub · 2026-11-24 23:24 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!