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

Open
github-bot wants to merge 1 commit from github-bot/gh-1087 into main AGit
Owner

@⁠gloger2003 on GitHub · 2026-11-24 11:25 UTC · original
gloger2003:fix/d3d12-msaa-depth-view → main · +47 −5 · 2 files · 1 commits · open

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.
**@⁠gloger2003** on GitHub · 2026-11-24 11:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1087) `gloger2003:fix/d3d12-msaa-depth-view` → `main` · +47 −5 · 2 files · 1 commits · open 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.
Typeless depth resources need an explicit view format. The default view always used a single-sample dimension, so clearing a 4x depth target in Minecraft Preview removed the D3D12 device on the RX 7800 XT.

Select multisampled view dimensions for both individual textures and arrays. The new test checks all four combinations. A 20-second retail diagnostic run reached 991 presents after the fix.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:42:58 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 14:17 UTC · original · edited 2026-11-24 14:30 UTC

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.
**@⁠futurepro62** on GitHub · 2026-11-24 14:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7134125580) · edited 2026-11-24 14:30 UTC 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.
Author
Owner

@⁠KaniaKrzysztof on GitHub · 2026-11-24 19:21 UTC · original

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!

**@⁠KaniaKrzysztof** on GitHub · 2026-11-24 19:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7141973447) ## 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!
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 08:36 UTC · original

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

**@⁠DavidM1911** on GitHub · 2026-11-25 08:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1087#issuecomment-7157256518) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** (`README.md`) — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1087/head:github-bot/gh-1087'
git switch 'github-bot/gh-1087'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1087'
git switch 'github-bot/gh-1087'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1087'
git switch 'github-bot/gh-1087'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1087'
git switch 'main'
git merge --squash 'github-bot/gh-1087'
git switch 'main'
git merge --ff-only 'github-bot/gh-1087'
git switch 'main'
git merge 'github-bot/gh-1087'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.