D3D12.X: match default depth views to MSAA textures #1078

Open
gloger2003 wants to merge 1 commit from upstream-pr/1087 into main
gloger2003 commented 2026-11-24 11:25:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gloger2003 on 2026-11-24T11:25:46Z.


Minecraft Preview 1.18.3064.0 lost the D3D12 device on the RX 7800 XT during its first depth/stencil clears. A first-parent bisection found 38b05b7 as the first failing commit (956a476 worked). That commit started creating typed default views for typeless depth textures. The generated default view used TEXTURE2D or TEXTURE2DARRAY regardless of the sample count.

What is in it

  • Select TEXTURE2DMS or TEXTURE2DMSARRAY for multisampled depth textures. Keep the typed depth format and the full slice range.
  • Check the default descriptor for single-sample and multisampled D24S8 textures and arrays.

Tested

  • Windows 11 26300.9974, Radeon RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC and DXC 1.9.2602.17.

  • The focused descriptor test failed before the change on a 4x resource and passed with the change.

  • Workspace build and cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output on the PR commit: 742 passed, 0 failed, 41 ignored, no explicit GPU capability skips.

  • Minecraft Preview reached the main menu and drew 3,420 frames in the 60-second run. Both release runs below used a fresh data root and the same frame-capture interval.

  • A repeat 60-second run on the same PR head drew 3,411 frames with no device removal or crash (peak commit 3,525 MiB). The pre-regression main commit 956a476 exited cleanly after 60 seconds, but only drew 718 frames and stopped presenting after roughly 16 seconds.

  • Supplemental 12-second runs with fresh data roots compared 956a476 with this PR head. They drew 617 and 615 frames respectively, both with zero removals and crashes. External 500 ms samples of the XCL host process showed peak private bytes of 2,800 and 3,165 MiB respectively (+13.1%). This comparison spans other changes on main and does not measure the patch's isolated memory cost.

  • Native D3D12 debug-layer probe on the same RX 7800 XT, with standalone 4x R24G8_TYPELESS resources (one and three array slices). The corrected TEXTURE2DMS and TEXTURE2DMSARRAY descriptors created D24S8 views without debug messages or removal. The original TEXTURE2D and TEXTURE2DARRAY descriptors each triggered CREATEDEPTHSTENCILVIEW_INVALIDDESC (46), followed by DXGI_ERROR_INVALID_CALL (0x887a0001). This isolates the descriptor failure from title startup.

  • With the D3D12 debug layer enabled inside XCL, both title builds hit an earlier access violation in D3D12Core before reaching this check. The 60-second runs below have the debug layer disabled.

  • Current-main follow-up on Radeon RX 7800 XT: at b9b6ea6, a clean profile and a matched 4x MSAA profile each lost the device before presenting. Merging only this PR into that main (615da26) let both profiles reach the menu, with 575 and 597 frames in 12 s and no device removal. The matched 1x profile also reached the menu on b9b6ea6 (602 frames). These comparison runs used release builds with the D3D12 debug layer disabled.

Regression run
Matched 60-second runs on the RX 7800 XT with identical Minecraft Preview profiles, using the title setting gfx_msaa:1 to isolate the regression comparison from the 4x startup crash. Both reached the menu. The last frame samples had 124,513 and 124,514 non-dark pixels out of 129,600.

Separate 4x defect verification with the default setting: main 47efa2e lost the D3D12 device (0x887a0001) after 2.7 seconds, with one removal, one crash, and 2,341 MiB peak commit. The exact PR head e6484db showed 3,420 frames across the full 60 seconds, with zero removals, zero crashes, and 3,511 MiB peak commit. The two 4x runs provide crash-fix evidence and end at different points in startup.

main (1x):

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 60
exit: 0x0
frames shown: 3463 (PresentX 3463)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3342 MB

PR (1x):

xcl-smoke v1
commit: e6484dbd15fa3a7c9792d0ab853ef909c3065dff
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 60
exit: 0x0
frames shown: 3490 (PresentX 3490)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3344 MB

Not tested

  • Other GPU vendors, other retail titles, or gameplay beyond the main menu.
  • Tests that require XCL_SAMPLE_* files.

AI use

  • OpenAI Codex (GPT-6 family, exact model variant unavailable) ran the bisection, implemented the fix and test, ran both smoke checks, and drafted this description.
  • OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode) ran the current-main follow-up.
<!-- greyfinch-sync:ivall/xcl:issue:5471230402 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087). Originally posted by [gloger2003](https://github.com/gloger2003) on 2026-11-24T11:25:46Z. --- Minecraft Preview 1.18.3064.0 lost the D3D12 device on the RX 7800 XT during its first depth/stencil clears. A first-parent bisection found 38b05b7 as the first failing commit (956a476 worked). That commit started creating typed default views for typeless depth textures. The generated default view used TEXTURE2D or TEXTURE2DARRAY regardless of the sample count. **What is in it** - Select TEXTURE2DMS or TEXTURE2DMSARRAY for multisampled depth textures. Keep the typed depth format and the full slice range. - Check the default descriptor for single-sample and multisampled D24S8 textures and arrays. **Tested** - Windows 11 26300.9974, Radeon RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC and DXC 1.9.2602.17. - The focused descriptor test failed before the change on a 4x resource and passed with the change. - Workspace build and cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output on the PR commit: 742 passed, 0 failed, 41 ignored, no explicit GPU capability skips. - Minecraft Preview reached the main menu and drew 3,420 frames in the 60-second run. Both release runs below used a fresh data root and the same frame-capture interval. - A repeat 60-second run on the same PR head drew 3,411 frames with no device removal or crash (peak commit 3,525 MiB). The pre-regression main commit 956a476 exited cleanly after 60 seconds, but only drew 718 frames and stopped presenting after roughly 16 seconds. - Supplemental 12-second runs with fresh data roots compared 956a476 with this PR head. They drew 617 and 615 frames respectively, both with zero removals and crashes. External 500 ms samples of the XCL host process showed peak private bytes of 2,800 and 3,165 MiB respectively (+13.1%). This comparison spans other changes on main and does not measure the patch's isolated memory cost. - Native D3D12 debug-layer probe on the same RX 7800 XT, with standalone 4x R24G8_TYPELESS resources (one and three array slices). The corrected TEXTURE2DMS and TEXTURE2DMSARRAY descriptors created D24S8 views without debug messages or removal. The original TEXTURE2D and TEXTURE2DARRAY descriptors each triggered CREATEDEPTHSTENCILVIEW_INVALIDDESC (46), followed by DXGI_ERROR_INVALID_CALL (0x887a0001). This isolates the descriptor failure from title startup. - With the D3D12 debug layer enabled inside XCL, both title builds hit an earlier access violation in D3D12Core before reaching this check. The 60-second runs below have the debug layer disabled. - Current-main follow-up on Radeon RX 7800 XT: at b9b6ea6, a clean profile and a matched 4x MSAA profile each lost the device before presenting. Merging only this PR into that main (615da26) let both profiles reach the menu, with 575 and 597 frames in 12 s and no device removal. The matched 1x profile also reached the menu on b9b6ea6 (602 frames). These comparison runs used release builds with the D3D12 debug layer disabled. **Regression run** Matched 60-second runs on the RX 7800 XT with identical Minecraft Preview profiles, using the title setting gfx_msaa:1 to isolate the regression comparison from the 4x startup crash. Both reached the menu. The last frame samples had 124,513 and 124,514 non-dark pixels out of 129,600. Separate 4x defect verification with the default setting: main 47efa2e lost the D3D12 device (0x887a0001) after 2.7 seconds, with one removal, one crash, and 2,341 MiB peak commit. The exact PR head e6484db showed 3,420 frames across the full 60 seconds, with zero removals, zero crashes, and 3,511 MiB peak commit. The two 4x runs provide crash-fix evidence and end at different points in startup. main (1x): ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: AMD Radeon RX 7800 XT title: Xbox-Series-1.18.3064.0 seconds: 60 exit: 0x0 frames shown: 3463 (PresentX 3463) presents per 2 s (last 3): 120 120 120 device removals: 0 crashes: 0 peak commit: 3342 MB ``` PR (1x): ``` xcl-smoke v1 commit: e6484dbd15fa3a7c9792d0ab853ef909c3065dff gpu: AMD Radeon RX 7800 XT title: Xbox-Series-1.18.3064.0 seconds: 60 exit: 0x0 frames shown: 3490 (PresentX 3490) presents per 2 s (last 3): 120 120 120 device removals: 0 crashes: 0 peak commit: 3344 MB ``` **Not tested** - Other GPU vendors, other retail titles, or gameplay beyond the main menu. - Tests that require XCL_SAMPLE_* files. **AI use** - OpenAI Codex (GPT-6 family, exact model variant unavailable) ran the bisection, implemented the fix and test, ran both smoke checks, and drafted this description. - OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode) ran the current-main follow-up.
futurepro62 commented 2026-11-24 15:05:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:17:01Z.


Full-suite run, since this PR has no test report yet. Tested exact head e6484db (on its base 47efa2e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: default_dsv_matches_depth_resource_sample_count_and_array_size.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no skips.

Not tested

  • A release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7134125580 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1087#issuecomment-7134125580). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:17:01Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `e6484db` (on its base `47efa2e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **742 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `default_dsv_matches_depth_resource_sample_count_and_array_size`. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **742 passed, 0 failed, 41 ignored**, no skips. **Not tested** - A release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
KaniaKrzysztof commented 2026-11-24 21:08:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KaniaKrzysztof on 2026-11-24T19:21:15Z.


Independent NVIDIA validation — Ada & Turing

Tested the exact PR head e6484dbd15fa3a7c9792d0ab853ef909c3065dff on two physical NVIDIA GPUs.

Test title: Minecraft Preview 1.18.3064.0

Both GPUs successfully rendered the main menu and completed a 60-second smoke test with stable presentation at 60 presents/s in the final samples, zero crashes, zero device removals, and zero shader compilation or pipeline failures.

60-second smoke RTX 4090 RTX 2070
Architecture Ada Turing
OS Windows 11 Windows 10
NVIDIA driver 621.40 621.40
Resolution 1920×1080 1920×1080
MSAA 4× 4×
Exit code 0x0 0x0
Crashes 0 0
Device removals 0 0
Presented frames 3,421 3,412
Final presents/s (last three samples) 60 / 60 / 60 60 / 60 / 60
Peak commit 3,711 MB 3,589 MB
Translated / failed pipelines 16 / 0 14 / 0
Fresh DXIL compilations / failures 14 / 0 12 / 0
Translation errors 0 0
Full-resolution captures 6/6 non-dark 6/6 non-dark

MSAA depth-view validation

Both traces recorded a 1920×1080 four-sample R24G8_TYPELESS depth resource and four-sample D24_UNORM_S8_UINT graphics pipelines with depth testing enabled.

The original multisampled depth-view creation error (D3D12 message ID 46), observed during earlier pre-fix testing, was absent from both PR-head logs.

The RTX 4090 retained six resource-state validation errors (message IDs 527 and 538). Comparison against retained pre-fix logs confirmed identical diagnostic messages, counts, and ordering. These errors predate this PR.

No evidence of a regression introduced by this PR was found in the tested paths.

RTX 4090 — full smoke report and environment
xcl-smoke v1
commit: e6484dbd15fa3a7c9792d0ab853ef909c3065dff
gpu: NVIDIA GeForce RTX 4090
title: Minecraft
seconds: 60
exit: 0x0
frames shown: 3421 (PresentX 3421)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3711 MB

Hardware and runtime

  • GPU: NVIDIA GeForce RTX 4090 (Ada)
  • VRAM: 24,142 MiB (adapter-reported)
  • CPU: AMD Ryzen 7 5800X3D
  • RAM: 79.9 GiB (OS-reported)
  • OS: Windows 11 build 26200.9974
  • NVIDIA driver: 621.40
  • Direct3D feature level: 12_2
  • Shader Model: 6.9 (separate capability probe)
  • Mesh shader tier: 1
  • Wave size: 32
  • DXC: 1.9.2602.17
  • Agility SDK: 620
  • Configured D3D12Core: 1.620.1.0
  • D3D12 debug layer: enabled
  • DXIL cache: cold

Shader and pipeline statistics

  • Translated graphics pipelines: 16
  • Failed pipelines: 0
  • Fresh DXIL compilations: 14
  • DXIL compilation failures: 0
  • Translation errors: 0

Frame verification

All six full-resolution 1920×1080 BMP captures were inspected directly using pixel analysis. All contained non-dark rendered output.

Captured frames: 20, 620, 1220, 1820, 2420 and 3020.

Main-menu rendering was also verified visually.

RTX 2070 — full smoke report and environment
xcl-smoke v1
commit: e6484dbd15fa3a7c9792d0ab853ef909c3065dff
gpu: NVIDIA GeForce RTX 2070
title: MinecraftPreview
seconds: 60
exit: 0x0
frames shown: 3412 (PresentX 3412)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3589 MB

Hardware and runtime

  • GPU: NVIDIA GeForce RTX 2070 (Turing)
  • VRAM: 8,006 MiB (adapter-reported)
  • OS: Windows 10 build 19045
  • NVIDIA driver: 621.40
  • Direct3D feature level: 12_1
  • Shader Model: 6.5 with the inbox runtime
  • Shader Model: 6.9 confirmed in a separate Agility-enabled capability probe
  • Mesh shader tier: 1
  • Wave size: 32
  • DXC: 1.9.2602.17
  • Agility SDK: 620
  • D3D12 debug layer: enabled
  • DXIL cache: cold

Shader and pipeline statistics

  • Translated graphics pipelines: 14
  • Failed pipelines: 0
  • Fresh DXIL compilations: 12
  • DXIL compilation failures: 0
  • Translation errors: 0

Frame verification

All six full-resolution 1920×1080 BMP captures contained non-dark rendered output.

The final captured frame (3020) contained 1,992,631 pixels with an RGB sum above 30, out of 2,073,600 pixels (approximately 96.1%).

Main-menu rendering was verified visually.

No matching D3D12 validation callback diagnostics were found in the retained XCL log or stderr.

D3D12 debug-layer diagnostics and pre-fix comparison

The RTX 4090 retained the following diagnostics:

D3D12 message ID Severity Count Description
527 Error 3 Resource-barrier before-state mismatch
538 Error 3 Invalid render-target state at execution
989 Warning 8 Legacy feature query
1328 Warning 8 Reserved-buffer initial state
1477 Warning 8 DSV format on a depth-disabled PSO
245 Warning 2 Input layout type mismatch

Message ID 527

A resource barrier declared subresource 0's before-state as COMMON/PRESENT (0x0), while debug tracking recorded RENDER_TARGET (0x4).

Message ID 538

ClearRenderTargetView required the RENDER_TARGET state, while the affected subresource was tracked as COMMON/PRESENT.

All six errors match the retained pre-fix diagnostics in message content, count, and ordering after normalizing timestamps, thread IDs, and process-local addresses.

The PR-head frame trace maps the affected resources to 1920×1080 single-sample R8G8B8A8_UNORM color buffers presented by the title, rather than the multisampled depth resources addressed by this PR.

Message ID 1477

The graphics PSO declares D24_UNORM_S8_UINT while depth and stencil testing are disabled and the pixel shader has no SV_Depth output.

Code inspection confirms that the relevant PSO descriptor path is unchanged by this PR. The reason this warning appeared only in the retained PR-head log remains inconclusive.

These diagnostics did not prevent successful completion of either smoke test.

The original MSAA depth-view creation error (message ID 46) was present in the pre-fix log and absent from the PR-head logs.

Additional finding — DXC and Agility SDK compatibility on Windows 10

The RTX 2070 initially completed a 60-second smoke test without crashing but presented entirely black frames.

The initial environment used:

  • DXC 1.6.2112.16
  • Inbox D3D12 runtime
  • Shader Model 6.5
  • Cold shader cache

The run recorded 12 fresh DXIL compilations, all rejected by XCL's container validation, and zero successfully translated graphics pipelines.

A separate CPU-only synthetic comparison reproduced the DXIL container rejection independently of Minecraft and GPU execution.

Synthetic shader DXC 1.6 — XCL validation DXC 1.9 — XCL validation
vs_6_6, position only Accepted Accepted
vs_6_6, position and TEXCOORD0 Rejected Accepted
ps_6_6, constant color Rejected Accepted

The first failing predicate was off & 3 != 0. DXC 1.6 emitted unaligned PSV0 chunk offsets in two synthetic shaders, although the corresponding Microsoft validator accepted all six generated blobs.

The original failing Minecraft DXIL blobs were unavailable, so their exact failing offsets were not established.

Using matching application-local runtime dependencies resolved the black-screen issue:

  • dxcompiler.dll: 1.9.2602.17
  • dxil.dll: 1.9.2602.17
  • Agility SDK: 620
  • D3D12Core.dll: 1.620.1.0 in the separate runtime probes

Separate probes confirmed Shader Model 6.9 and successful creation of a synthetic SM 6.6 graphics PSO (S_OK) on both GPUs.

The subsequent cold-cache Minecraft smoke on the RTX 2070 successfully compiled all required shaders, built translated graphics pipelines, and rendered nonblack frames.

No XCL source modifications, operating system upgrades, or system DLL replacements were required to resolve the issue.

The DXIL validation finding appears independent of this PR and may warrant separate investigation.

AI disclosure: OpenAI Codex assisted with test preparation, diagnostic analysis, executable integrity verification, synthetic probes, frame pixel analysis, and report preparation. Both retail smoke tests were launched manually, and visual results were checked by the tester.

The results support the effectiveness of the MSAA depth-view fix on both NVIDIA Ada and Turing hardware, including Windows 10 with the appropriate application-local runtime dependencies.

Thanks for the fix!

<!-- greyfinch-sync:ivall/xcl:comment:7141973447 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7141973447). Originally posted by [KaniaKrzysztof](https://github.com/KaniaKrzysztof) on 2026-11-24T19:21:15Z. --- ## Independent NVIDIA validation — Ada & Turing Tested the exact PR head `e6484dbd15fa3a7c9792d0ab853ef909c3065dff` on two physical NVIDIA GPUs. **Test title:** Minecraft Preview 1.18.3064.0 Both GPUs successfully rendered the main menu and completed a 60-second smoke test with stable presentation at 60 presents/s in the final samples, zero crashes, zero device removals, and zero shader compilation or pipeline failures. | 60-second smoke | RTX 4090 | RTX 2070 | | --- | ---: | ---: | | Architecture | Ada | Turing | | OS | Windows 11 | Windows 10 | | NVIDIA driver | 621.40 | 621.40 | | Resolution | 1920×1080 | 1920×1080 | | MSAA | 4× | 4× | | Exit code | 0x0 | 0x0 | | Crashes | 0 | 0 | | Device removals | 0 | 0 | | Presented frames | 3,421 | 3,412 | | Final presents/s (last three samples) | 60 / 60 / 60 | 60 / 60 / 60 | | Peak commit | 3,711 MB | 3,589 MB | | Translated / failed pipelines | 16 / 0 | 14 / 0 | | Fresh DXIL compilations / failures | 14 / 0 | 12 / 0 | | Translation errors | 0 | 0 | | Full-resolution captures | 6/6 non-dark | 6/6 non-dark | ### MSAA depth-view validation Both traces recorded a 1920×1080 four-sample `R24G8_TYPELESS` depth resource and four-sample `D24_UNORM_S8_UINT` graphics pipelines with depth testing enabled. The original multisampled depth-view creation error (D3D12 message ID 46), observed during earlier pre-fix testing, was absent from both PR-head logs. The RTX 4090 retained six resource-state validation errors (message IDs 527 and 538). Comparison against retained pre-fix logs confirmed identical diagnostic messages, counts, and ordering. These errors predate this PR. No evidence of a regression introduced by this PR was found in the tested paths. <details> <summary>RTX 4090 — full smoke report and environment</summary> ```text xcl-smoke v1 commit: e6484dbd15fa3a7c9792d0ab853ef909c3065dff gpu: NVIDIA GeForce RTX 4090 title: Minecraft seconds: 60 exit: 0x0 frames shown: 3421 (PresentX 3421) presents per 2 s (last 3): 120 120 120 device removals: 0 crashes: 0 peak commit: 3711 MB ``` **Hardware and runtime** - GPU: NVIDIA GeForce RTX 4090 (Ada) - VRAM: 24,142 MiB (adapter-reported) - CPU: AMD Ryzen 7 5800X3D - RAM: 79.9 GiB (OS-reported) - OS: Windows 11 build 26200.9974 - NVIDIA driver: 621.40 - Direct3D feature level: 12_2 - Shader Model: 6.9 (separate capability probe) - Mesh shader tier: 1 - Wave size: 32 - DXC: 1.9.2602.17 - Agility SDK: 620 - Configured D3D12Core: 1.620.1.0 - D3D12 debug layer: enabled - DXIL cache: cold **Shader and pipeline statistics** - Translated graphics pipelines: 16 - Failed pipelines: 0 - Fresh DXIL compilations: 14 - DXIL compilation failures: 0 - Translation errors: 0 **Frame verification** All six full-resolution 1920×1080 BMP captures were inspected directly using pixel analysis. All contained non-dark rendered output. Captured frames: 20, 620, 1220, 1820, 2420 and 3020. Main-menu rendering was also verified visually. </details> <details> <summary>RTX 2070 — full smoke report and environment</summary> ```text xcl-smoke v1 commit: e6484dbd15fa3a7c9792d0ab853ef909c3065dff gpu: NVIDIA GeForce RTX 2070 title: MinecraftPreview seconds: 60 exit: 0x0 frames shown: 3412 (PresentX 3412) presents per 2 s (last 3): 120 120 120 device removals: 0 crashes: 0 peak commit: 3589 MB ``` **Hardware and runtime** - GPU: NVIDIA GeForce RTX 2070 (Turing) - VRAM: 8,006 MiB (adapter-reported) - OS: Windows 10 build 19045 - NVIDIA driver: 621.40 - Direct3D feature level: 12_1 - Shader Model: 6.5 with the inbox runtime - Shader Model: 6.9 confirmed in a separate Agility-enabled capability probe - Mesh shader tier: 1 - Wave size: 32 - DXC: 1.9.2602.17 - Agility SDK: 620 - D3D12 debug layer: enabled - DXIL cache: cold **Shader and pipeline statistics** - Translated graphics pipelines: 14 - Failed pipelines: 0 - Fresh DXIL compilations: 12 - DXIL compilation failures: 0 - Translation errors: 0 **Frame verification** All six full-resolution 1920×1080 BMP captures contained non-dark rendered output. The final captured frame (3020) contained 1,992,631 pixels with an RGB sum above 30, out of 2,073,600 pixels (approximately 96.1%). Main-menu rendering was verified visually. No matching D3D12 validation callback diagnostics were found in the retained XCL log or stderr. </details> <details> <summary>D3D12 debug-layer diagnostics and pre-fix comparison</summary> The RTX 4090 retained the following diagnostics: | D3D12 message ID | Severity | Count | Description | | --- | --- | ---: | --- | | 527 | Error | 3 | Resource-barrier before-state mismatch | | 538 | Error | 3 | Invalid render-target state at execution | | 989 | Warning | 8 | Legacy feature query | | 1328 | Warning | 8 | Reserved-buffer initial state | | 1477 | Warning | 8 | DSV format on a depth-disabled PSO | | 245 | Warning | 2 | Input layout type mismatch | **Message ID 527** A resource barrier declared subresource 0's before-state as `COMMON/PRESENT` (`0x0`), while debug tracking recorded `RENDER_TARGET` (`0x4`). **Message ID 538** `ClearRenderTargetView` required the `RENDER_TARGET` state, while the affected subresource was tracked as `COMMON/PRESENT`. All six errors match the retained pre-fix diagnostics in message content, count, and ordering after normalizing timestamps, thread IDs, and process-local addresses. The PR-head frame trace maps the affected resources to 1920×1080 single-sample `R8G8B8A8_UNORM` color buffers presented by the title, rather than the multisampled depth resources addressed by this PR. **Message ID 1477** The graphics PSO declares `D24_UNORM_S8_UINT` while depth and stencil testing are disabled and the pixel shader has no `SV_Depth` output. Code inspection confirms that the relevant PSO descriptor path is unchanged by this PR. The reason this warning appeared only in the retained PR-head log remains inconclusive. These diagnostics did not prevent successful completion of either smoke test. The original MSAA depth-view creation error (message ID 46) was present in the pre-fix log and absent from the PR-head logs. </details> <details> <summary>Additional finding — DXC and Agility SDK compatibility on Windows 10</summary> The RTX 2070 initially completed a 60-second smoke test without crashing but presented entirely black frames. The initial environment used: - DXC 1.6.2112.16 - Inbox D3D12 runtime - Shader Model 6.5 - Cold shader cache The run recorded 12 fresh DXIL compilations, all rejected by XCL's container validation, and zero successfully translated graphics pipelines. A separate CPU-only synthetic comparison reproduced the DXIL container rejection independently of Minecraft and GPU execution. | Synthetic shader | DXC 1.6 — XCL validation | DXC 1.9 — XCL validation | | --- | --- | --- | | `vs_6_6`, position only | Accepted | Accepted | | `vs_6_6`, position and TEXCOORD0 | Rejected | Accepted | | `ps_6_6`, constant color | Rejected | Accepted | The first failing predicate was `off & 3 != 0`. DXC 1.6 emitted unaligned `PSV0` chunk offsets in two synthetic shaders, although the corresponding Microsoft validator accepted all six generated blobs. The original failing Minecraft DXIL blobs were unavailable, so their exact failing offsets were not established. Using matching application-local runtime dependencies resolved the black-screen issue: - `dxcompiler.dll`: 1.9.2602.17 - `dxil.dll`: 1.9.2602.17 - Agility SDK: 620 - `D3D12Core.dll`: 1.620.1.0 in the separate runtime probes Separate probes confirmed Shader Model 6.9 and successful creation of a synthetic SM 6.6 graphics PSO (`S_OK`) on both GPUs. The subsequent cold-cache Minecraft smoke on the RTX 2070 successfully compiled all required shaders, built translated graphics pipelines, and rendered nonblack frames. No XCL source modifications, operating system upgrades, or system DLL replacements were required to resolve the issue. The DXIL validation finding appears independent of this PR and may warrant separate investigation. </details> **AI disclosure:** OpenAI Codex assisted with test preparation, diagnostic analysis, executable integrity verification, synthetic probes, frame pixel analysis, and report preparation. Both retail smoke tests were launched manually, and visual results were checked by the tester. The results support the effectiveness of the MSAA depth-view fix on both NVIDIA Ada and Turing hardware, including Windows 10 with the appropriate application-local runtime dependencies. Thanks for the fix!
DavidM1911 commented 2026-11-25 09:08:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:36:54Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main (README.md) — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7157256518 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7157256518). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T08:36:54Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** (`README.md`) — needs a rebase before it can be tested.
andrewDoing commented 2026-11-26 22:21:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-26T22:21:51Z.


Independent RTX 5070 Minecraft Preview startup comparison, using the same modified third-party game image on both revisions. The executable's publisher provenance is unverified.

  • Clean main 8b957bec6f82495aec940944c6bf47faa02db590: no frames logged; device removal (0x887a0001) followed by NVIDIA driver access violation, process exit 0xc0000005.
  • Clean PR head e6484dbd15fa3a7c9792d0ab853ef909c3065dff: 60 seconds, 3,362 frames, exit 0x0, zero device removals and crashes, peak commit 3,451 MB. Separate fresh XCL data and DXIL cache directories; network disabled by the smoke script.
  • The focused depth-view regression passed on the exact PR head. The current PR has a README-only merge conflict against the main revision above; its runtime change applied cleanly in a local integration, where the 60-second title run also passed.

Hardware: RTX 5070, driver 616.92, Ryzen 7 5700X3D; Windows build 26300.10075; Rust 1.100.0 MSVC release. These observations support the fix on this configuration, but do not authenticate the game files or isolate the exact D3D12 call.

AI use: OpenAI Codex with GPT-6.2 Astra ran the exact-head test and inspected the conflict; Codex coordinated the comparison.

<!-- greyfinch-sync:ivall/xcl:comment:7204609243 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7204609243). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-26T22:21:51Z. --- Independent RTX 5070 Minecraft Preview startup comparison, using the same modified third-party game image on both revisions. The executable's publisher provenance is unverified. - Clean main `8b957bec6f82495aec940944c6bf47faa02db590`: no frames logged; device removal (`0x887a0001`) followed by NVIDIA driver access violation, process exit `0xc0000005`. - Clean PR head `e6484dbd15fa3a7c9792d0ab853ef909c3065dff`: 60 seconds, 3,362 frames, exit `0x0`, zero device removals and crashes, peak commit 3,451 MB. Separate fresh XCL data and DXIL cache directories; network disabled by the smoke script. - The focused depth-view regression passed on the exact PR head. The current PR has a README-only merge conflict against the main revision above; its runtime change applied cleanly in a local integration, where the 60-second title run also passed. Hardware: RTX 5070, driver 616.92, Ryzen 7 5700X3D; Windows build 26300.10075; Rust 1.100.0 MSVC release. These observations support the fix on this configuration, but do not authenticate the game files or isolate the exact D3D12 call. AI use: OpenAI Codex with GPT-6.2 Astra ran the exact-head test and inspected the conflict; Codex coordinated the comparison.
KaniaKrzysztof commented 2026-11-27 07:56:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KaniaKrzysztof on 2026-11-27T07:56:54Z.


@Prime1997 Given the multiple independent validations across AMD and NVIDIA GPUs, and the confirmation that the remaining merge conflict is limited to README.md, would it be possible for a maintainer to resolve the conflict and merge this PR if there are no outstanding technical concerns?

The latest report also confirms that the runtime fix applies cleanly on top of current main and resolves Minecraft the startup crash.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7212977947 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7212977947). Originally posted by [KaniaKrzysztof](https://github.com/KaniaKrzysztof) on 2026-11-27T07:56:54Z. --- @Prime1997 Given the multiple independent validations across AMD and NVIDIA GPUs, and the confirmation that the remaining merge conflict is limited to `README.md`, would it be possible for a maintainer to resolve the conflict and merge this PR if there are no outstanding technical concerns? The latest report also confirms that the runtime fix applies cleanly on top of current main and resolves Minecraft the startup crash. Thanks!
SzczepanGrela commented 2026-11-27 09:30:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-27T09:30:04Z.


RX 9070 / Wine check of exact head e6484dbd15fa3a7c9792d0ab853ef909c3065dff, main 623d02e465a17497a757a4ce867f482b0a6c8f3b, and the PR's runtime change applied automatically to that main. The original parent is 47efa2ecea0a12934719ae69b81930cf02a4b1c3. The code merges without conflict; README still conflicts, so the integration here retains main's README and is not a full PR merge.

RX 9070 16 GB (RADV GFX1201), Ryzen 7 7700, CachyOS kernel 7.3.6-1-cachyos, Mesa 26.3.1-5, GE-Proton11-12 / Wine 11.0 Staging, ntsync. Native vkd3d-proton 8293130ebe370b1+, local asserts-disabled build; DXC/DXIL 1.9.2602.17, Rust 1.97.1, Windows-GNU release. Private enabled caches per process.

Tested

  • Original default_dsv_matches_depth_resource_sample_count_and_array_size, copied unchanged to the main control: at both --test-threads=1 and 4, head and runtime integration each 1 passed / 0 failed; main 0 passed / 1 expected failure on the multisampled descriptor. 0 ignored/skipped.
  • An appended local native D3D12 probe calls the actual default_dsv, creates its returned view, clears depth to 0 and then 1, and uses Texture2D, Texture2DMS or their array forms to load every sample of every pixel/slice into a UAV. It checks the returned view's typed format, dimension, flags, first slice, array size and mip, plus 16 trailing output guards.
  • All 24 combinations on each fixed source: D16_UNORM, D32_FLOAT and D24_UNORM_S8_UINT (typeless resources); sample counts 1/2/4/8; array sizes 1/3; 16x8 pixels. Three fresh full processes per source plus a D32 / 4x / three-slice pilot. No unavailable capability or resource-creation rows. Every fixed-source invocation: 1 passed / 0 failed / 0 ignored / 0 skipped.
  • Main returns the wrong view dimension in 18 of its 24 rows per full run. Those descriptors are recorded and not executed on the GPU. Its six valid single-sample rows clear/read back correctly. The local main-control invocation fails its descriptor assertion; this is not a reproduced driver crash.
  • Across the 18 processes: 328 actual clear/readback pairs, 291,840 sampled depth values and 5,248 guard words independently verified (297,088 words total). Every executed depth value has the expected exact float bits for 0 or 1; every guard remains unchanged. Device remains healthy in the data probes.
cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run
wine <test-exe> hle::d3d12x::real::depth_view_tests::default_dsv_matches_depth_resource_sample_count_and_array_size --exact --nocapture --test-threads=1
wine <test-exe> hle::d3d12x::real::depth_view_tests::default_dsv_matches_depth_resource_sample_count_and_array_size --exact --nocapture --test-threads=4
wine <test-exe> hle::d3d12x::real::workflow_msaa_depth::workflow_default_depth_views_clear_all_samples_and_slices --exact --nocapture --test-threads=1

The last filter is a local fixture. Local additions are appended test code in copied source trees, with the original CPU assertions unchanged.

Not tested: stencil contents, rasterized depth testing, intermediate clear values, combined D32_FLOAT_S8X24_UINT, full console descriptor-creation wrapper, whole suite, title/smoke or performance. Invalid baseline MSAA views were not submitted. No retail data used.

AI use: OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the public patch, prepared the runtime integration and local probe/checker, ran and independently verified the results, and drafted this report. Publication authorized by the account owner.

<!-- greyfinch-sync:ivall/xcl:comment:7214754244 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7214754244). Originally posted by [SzczepanGrela](https://github.com/SzczepanGrela) on 2026-11-27T09:30:04Z. --- RX 9070 / Wine check of exact head `e6484dbd15fa3a7c9792d0ab853ef909c3065dff`, main `623d02e465a17497a757a4ce867f482b0a6c8f3b`, and the PR's runtime change applied automatically to that main. The original parent is `47efa2ecea0a12934719ae69b81930cf02a4b1c3`. The code merges without conflict; README still conflicts, so the integration here retains main's README and is not a full PR merge. RX 9070 16 GB (RADV GFX1201), Ryzen 7 7700, CachyOS kernel 7.3.6-1-cachyos, Mesa 26.3.1-5, GE-Proton11-12 / Wine 11.0 Staging, ntsync. Native vkd3d-proton `8293130ebe370b1+`, local asserts-disabled build; DXC/DXIL 1.9.2602.17, Rust 1.97.1, Windows-GNU release. Private enabled caches per process. **Tested** - Original `default_dsv_matches_depth_resource_sample_count_and_array_size`, copied unchanged to the main control: at both `--test-threads=1` and `4`, head and runtime integration each 1 passed / 0 failed; main 0 passed / 1 expected failure on the multisampled descriptor. 0 ignored/skipped. - An appended local native D3D12 probe calls the actual `default_dsv`, creates its returned view, clears depth to 0 and then 1, and uses `Texture2D`, `Texture2DMS` or their array forms to load every sample of every pixel/slice into a UAV. It checks the returned view's typed format, dimension, flags, first slice, array size and mip, plus 16 trailing output guards. - All 24 combinations on each fixed source: D16_UNORM, D32_FLOAT and D24_UNORM_S8_UINT (typeless resources); sample counts 1/2/4/8; array sizes 1/3; 16x8 pixels. Three fresh full processes per source plus a D32 / 4x / three-slice pilot. No unavailable capability or resource-creation rows. Every fixed-source invocation: 1 passed / 0 failed / 0 ignored / 0 skipped. - Main returns the wrong view dimension in 18 of its 24 rows per full run. Those descriptors are recorded and not executed on the GPU. Its six valid single-sample rows clear/read back correctly. The local main-control invocation fails its descriptor assertion; this is not a reproduced driver crash. - Across the 18 processes: 328 actual clear/readback pairs, 291,840 sampled depth values and 5,248 guard words independently verified (297,088 words total). Every executed depth value has the expected exact float bits for 0 or 1; every guard remains unchanged. Device remains healthy in the data probes. ```text cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run wine <test-exe> hle::d3d12x::real::depth_view_tests::default_dsv_matches_depth_resource_sample_count_and_array_size --exact --nocapture --test-threads=1 wine <test-exe> hle::d3d12x::real::depth_view_tests::default_dsv_matches_depth_resource_sample_count_and_array_size --exact --nocapture --test-threads=4 wine <test-exe> hle::d3d12x::real::workflow_msaa_depth::workflow_default_depth_views_clear_all_samples_and_slices --exact --nocapture --test-threads=1 ``` The last filter is a local fixture. Local additions are appended test code in copied source trees, with the original CPU assertions unchanged. **Not tested**: stencil contents, rasterized depth testing, intermediate clear values, combined D32_FLOAT_S8X24_UINT, full console descriptor-creation wrapper, whole suite, title/smoke or performance. Invalid baseline MSAA views were not submitted. No retail data used. **AI use**: OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the public patch, prepared the runtime integration and local probe/checker, ran and independently verified the results, and drafted this report. Publication authorized by the account owner.
JJAutoCompare commented 2026-11-27 11:03:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T11:03:05Z.


Tested

Clean PR head e6484dbd15fa3a7c9792d0ab853ef909c3065dff and parent 47efa2ecea0a12934719ae69b81930cf02a4b1c3 on Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC. A synthetic test-title caller reached XCL's CreateDepthStencilView hook at slot 21. The resource was a committed 16×16 R24G8_TYPELESS texture with four samples, quality 0, and one slice.

Ran the head and parent builds of the probe as dsv-probe-<revision>.exe explicit and dsv-probe-<revision>.exe implicit, each in a separate process with XCL_ADAPTER=A770 under the shared Arc mutex. The explicit control supplied a D24_UNORM_S8_UINT / TEXTURE2DMS descriptor. The implicit case passed null. The executable hashes matched before, under, and after every lock acquisition.

  • Head explicit, head implicit, and parent explicit completed the clear and read back all four samples at 0.25000003.
  • Parent implicit reproduced device removal immediately after view creation, with DXGI_ERROR_INVALID_CALL (0x887a0001).

Three successful readbacks, one expected parent failure, zero skips.

Not tested

Stencil samples, array views, the full suite, and retail smoke. The debug layer was unavailable (0x887a002d). Fence completion, readback, and device status were used for validation.

AI use

T3 Code / Codex (gpt-6.2-sol) prepared the synthetic probe, ran both revisions, and independently reproduced all four outcomes.

<!-- greyfinch-sync:ivall/xcl:comment:7216619715 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7216619715). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T11:03:05Z. --- **Tested** Clean PR head `e6484dbd15fa3a7c9792d0ab853ef909c3065dff` and parent `47efa2ecea0a12934719ae69b81930cf02a4b1c3` on Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC. A synthetic test-title caller reached XCL's `CreateDepthStencilView` hook at slot 21. The resource was a committed 16×16 `R24G8_TYPELESS` texture with four samples, quality 0, and one slice. Ran the head and parent builds of the probe as `dsv-probe-<revision>.exe explicit` and `dsv-probe-<revision>.exe implicit`, each in a separate process with `XCL_ADAPTER=A770` under the shared Arc mutex. The explicit control supplied a `D24_UNORM_S8_UINT / TEXTURE2DMS` descriptor. The implicit case passed null. The executable hashes matched before, under, and after every lock acquisition. - Head explicit, head implicit, and parent explicit completed the clear and read back all four samples at `0.25000003`. - Parent implicit reproduced device removal immediately after view creation, with `DXGI_ERROR_INVALID_CALL` (`0x887a0001`). Three successful readbacks, one expected parent failure, zero skips. **Not tested** Stencil samples, array views, the full suite, and retail smoke. The debug layer was unavailable (`0x887a002d`). Fence completion, readback, and device status were used for validation. **AI use** T3 Code / Codex (`gpt-6.2-sol`) prepared the synthetic probe, ran both revisions, and independently reproduced all four outcomes.
Foniass commented 2026-12-01 04:47:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:47:24Z.


Triage (#1607) – head e6484db

#3280 makes the same change to real.rs:default_dsv (TEXTURE2DMS / TEXTURE2DMSARRAY for multisampled depth buffers). It also adds 1D views and resolves DXGI_FORMAT_UNKNOWN and D16 formats in a new pc_dsv. This PR is older and covers only the MSAA case, with a test. Merge one of them and rebase the other.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301102893 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7301102893). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:47:24Z. --- **Triage (#1607)** – head e6484db #3280 makes the same change to real.rs:default_dsv (TEXTURE2DMS / TEXTURE2DMSARRAY for multisampled depth buffers). It also adds 1D views and resolves DXGI_FORMAT_UNKNOWN and D16 formats in a new pc_dsv. This PR is older and covers only the MSAA case, with a test. Merge one of them and rebase the other. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1087:upstream-pr/1087'
git switch 'upstream-pr/1087'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1087'
git switch 'upstream-pr/1087'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1087'
git switch 'upstream-pr/1087'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1087'
git switch 'main'
git merge --squash 'upstream-pr/1087'
git switch 'main'
git merge --ff-only 'upstream-pr/1087'
git switch 'main'
git merge 'upstream-pr/1087'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1078
No description provided.