D3D12.X: fix null UAV fallback and MSAA/typeless companion SRVs #2501

Open
ChalanaGimhanaX wants to merge 1 commit from upstream-pr/2511 into main
ChalanaGimhanaX commented 2026-11-25 21:10:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ChalanaGimhanaX on 2026-11-25T21:10:57Z.


Fix invalid null UAV fallback dimensions in dev_create_uav_checked_x and invalid MSAA / *_TYPELESS companion SRV descriptors in uav_companion_srv, preventing DXGI_ERROR_INVALID_CALL (0x887A0001) device removals when console titles create image UAVs on unsupported formats, MSAA textures, or non-depth typeless textures.

Part of #2461 and #1833.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs:
    • dev_create_uav_checked_x: reuse null_uav_desc(desc.as_ref(), Some(&rd)) instead of D3D12_UNORDERED_ACCESS_VIEW_DESC { ..Default::default() } when pc_typed_uav_supported returns false, avoiding zero ArraySize / WSize on Texture1DArray, Texture2DArray, and Texture3D null UAV fallbacks.
    • null_uav_desc: ignore ViewDimension == UNKNOWN (0) so it falls back to rd, and map MSAA 2DArray (7) to Texture2DArray with ArraySize = 1.
    • uav_companion_srv + concrete_srv_format: accept MSAA dimensions (6 / 7) from resource_dim_to_view when desc == None, emit D3D12_SRV_DIMENSION_TEXTURE2DMS / D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY when rd.SampleDesc.Count > 1 (preventing CREATESHADERRESOURCEVIEW_INVALIDDESC and ID3D12Device::RemoveDevice), and normalize any remaining *_TYPELESS or depth-only format to a concrete same-family SRV format (preventing CREATESHADERRESOURCEVIEW_INVALIDFORMAT).
    • uav_companion_srv_tests: added unit test uav_companion_srv_msaa_typeless_and_null_uav_dimensions and D3D12 debug-layer test gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714), Intel Core i5-10400F, Windows 11 Pro Build 26200, rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11, release build.
  • Failing-first check (before the fix):
    • uav_companion_srv_msaa_typeless_and_null_uav_dimensions failed (MSAA 2D default companion SRV returned None).
    • gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer failed under D3D12SDKLayers.dll with ID3D12Device::CreateShaderResourceView: The base resource was created as a multisample resource. You must specify D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY or D3D12_SRV_DIMENSION_TEXTURE2DMS. followed by ID3D12Device::RemoveDevice (DXGI_ERROR_INVALID_CALL).
  • After the fix (ba93ea4):
    • cargo test --release -p xcl --lib hle::d3d12x::real::uav_companion_srv_tests:: -- --test-threads=1 --nocapture on RTX 3060: 4 passed, 0 failed, 0 skipped (0 D3D12 debug-layer errors).
    • Same targeted test suite on WARP (XCL_ADAPTER=warp): 4 passed, 0 failed, 0 skipped (0 D3D12 debug-layer errors).
    • cargo build --release --workspace + cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture: 1425 passed, 0 failed, 46 ignored across 37 test binaries.
    • SKIPPED lines (26): 21 no wave64 (RTX 3060 is 32-lane), 3 per-lane refused f16/f32 forms (#1426), 1 pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode required), 1 heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
    • cargo test --release -p xcl --test e2e -- --test-threads=1: 4 passed, 0 failed.

Regression run

main (6d051da):

xcl-smoke v1
commit: 6d051da51ba3fe7ba7d4ef542da71f544646e3ba
gpu: NVIDIA GeForce RTX 3060
title: 37fe04ab
seconds: 60
exit: 0x0
frames shown: 1473 (PresentX 1473)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14348 MB

this PR (ba93ea4):

xcl-smoke v1
commit: ba93ea4418e3b8440fc563ad3b270e4f328cd166
gpu: NVIDIA GeForce RTX 3060
title: 37fe04ab
seconds: 60
exit: 0x0
frames shown: 1390 (PresentX 1390)
presents per 2 s (last 3): 58 60 49
device removals: 0
crashes: 0
peak commit: 9823 MB

Not tested

  • AMD / Intel GPUs, Linux / Wine, and retail gameplay beyond the 60-second menu smoke run.

AI use

  • Antigravity (Gemini 4 Neon) implemented the real.rs null UAV fallback and MSAA/typeless companion SRV fixes and tests, ran the failing-first check, targeted GPU/WARP tests, full workspace test suite, e2e tests, and smoke run, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5499240752 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511). Originally posted by [ChalanaGimhanaX](https://github.com/ChalanaGimhanaX) on 2026-11-25T21:10:57Z. --- Fix invalid null UAV fallback dimensions in `dev_create_uav_checked_x` and invalid MSAA / `*_TYPELESS` companion SRV descriptors in `uav_companion_srv`, preventing `DXGI_ERROR_INVALID_CALL` (`0x887A0001`) device removals when console titles create image UAVs on unsupported formats, MSAA textures, or non-depth typeless textures. Part of #2461 and #1833. **What is in it** - `crates/xcl/src/hle/d3d12x/real.rs`: - `dev_create_uav_checked_x`: reuse `null_uav_desc(desc.as_ref(), Some(&rd))` instead of `D3D12_UNORDERED_ACCESS_VIEW_DESC { ..Default::default() }` when `pc_typed_uav_supported` returns false, avoiding zero `ArraySize` / `WSize` on `Texture1DArray`, `Texture2DArray`, and `Texture3D` null UAV fallbacks. - `null_uav_desc`: ignore `ViewDimension == UNKNOWN (0)` so it falls back to `rd`, and map MSAA 2DArray (`7`) to `Texture2DArray` with `ArraySize = 1`. - `uav_companion_srv` + `concrete_srv_format`: accept MSAA dimensions (`6` / `7`) from `resource_dim_to_view` when `desc == None`, emit `D3D12_SRV_DIMENSION_TEXTURE2DMS` / `D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY` when `rd.SampleDesc.Count > 1` (preventing `CREATESHADERRESOURCEVIEW_INVALIDDESC` and `ID3D12Device::RemoveDevice`), and normalize any remaining `*_TYPELESS` or depth-only format to a concrete same-family SRV format (preventing `CREATESHADERRESOURCEVIEW_INVALIDFORMAT`). - `uav_companion_srv_tests`: added unit test `uav_companion_srv_msaa_typeless_and_null_uav_dimensions` and D3D12 debug-layer test `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer`. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714), Intel Core i5-10400F, Windows 11 Pro Build 26200, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC 1.8.2502.11, release build. - Failing-first check (before the fix): - `uav_companion_srv_msaa_typeless_and_null_uav_dimensions` failed (`MSAA 2D default companion SRV` returned `None`). - `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` failed under `D3D12SDKLayers.dll` with `ID3D12Device::CreateShaderResourceView: The base resource was created as a multisample resource. You must specify D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY or D3D12_SRV_DIMENSION_TEXTURE2DMS.` followed by `ID3D12Device::RemoveDevice` (`DXGI_ERROR_INVALID_CALL`). - After the fix (`ba93ea4`): - `cargo test --release -p xcl --lib hle::d3d12x::real::uav_companion_srv_tests:: -- --test-threads=1 --nocapture` on RTX 3060: 4 passed, 0 failed, 0 skipped (0 D3D12 debug-layer errors). - Same targeted test suite on WARP (`XCL_ADAPTER=warp`): 4 passed, 0 failed, 0 skipped (0 D3D12 debug-layer errors). - `cargo build --release --workspace` + `cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture`: 1425 passed, 0 failed, 46 ignored across 37 test binaries. - `SKIPPED` lines (26): 21 `no wave64` (RTX 3060 is 32-lane), 3 per-lane refused f16/f32 forms (`#1426`), 1 `pso_measurement_compiles_an_exact_synthetic_record` (Windows Developer Mode required), 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` (`no heap windows`). - `cargo test --release -p xcl --test e2e -- --test-threads=1`: 4 passed, 0 failed. **Regression run** main (`6d051da`): ``` xcl-smoke v1 commit: 6d051da51ba3fe7ba7d4ef542da71f544646e3ba gpu: NVIDIA GeForce RTX 3060 title: 37fe04ab seconds: 60 exit: 0x0 frames shown: 1473 (PresentX 1473) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14348 MB ``` this PR (`ba93ea4`): ``` xcl-smoke v1 commit: ba93ea4418e3b8440fc563ad3b270e4f328cd166 gpu: NVIDIA GeForce RTX 3060 title: 37fe04ab seconds: 60 exit: 0x0 frames shown: 1390 (PresentX 1390) presents per 2 s (last 3): 58 60 49 device removals: 0 crashes: 0 peak commit: 9823 MB ``` **Not tested** - AMD / Intel GPUs, Linux / Wine, and retail gameplay beyond the 60-second menu smoke run. **AI use** - Antigravity (Gemini 4 Neon) implemented the `real.rs` null UAV fallback and MSAA/typeless companion SRV fixes and tests, ran the failing-first check, targeted GPU/WARP tests, full workspace test suite, e2e tests, and smoke run, and drafted this PR description.
SlopTart commented 2026-11-25 22:06:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:21:53Z.


gpu_ suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of the new companion-SRV tests (uav_companion_srv_msaa_typeless_and_null_uav_dimensions and helpers): 4 passed. The gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer e2e entry ran to completion (ok) inside the suite run, no SKIPPED lines in this log, and gpu_uav_companion_srv_and_null_image_views is ok as well.

<!-- greyfinch-sync:ivall/xcl:comment:7174977417 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7174977417). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T21:21:53Z. --- `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of the new companion-SRV tests (`uav_companion_srv_msaa_typeless_and_null_uav_dimensions` and helpers): 4 passed. The `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` e2e entry ran to completion (ok) inside the suite run, no SKIPPED lines in this log, and `gpu_uav_companion_srv_and_null_image_views` is ok as well.
DavidM1911 commented 2026-11-25 22:06:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:24:03Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7175025776 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7175025776). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T21:24:03Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
emirduran707 commented 2026-11-25 22:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T21:29:20Z.


Independent AMD RDNA4 (native wave64) test report on exact head ba93ea4418e3b8440fc563ad3b270e4f328cd166 (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1423 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • Both PR tests passed: hle::d3d12x::real::uav_companion_srv_tests::uav_companion_srv_msaa_typeless_and_null_uav_dimensions and gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: ba93ea4418e3b8440fc563ad3b270e4f328cd166
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1581 (PresentX 1581)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14437 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer (not installed on this host); Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7175143163 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7175143163). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T21:29:20Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `ba93ea4418e3b8440fc563ad3b270e4f328cd166` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1423 passed, 2 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - Both PR tests passed: `hle::d3d12x::real::uav_companion_srv_tests::uav_companion_srv_msaa_typeless_and_null_uav_dimensions` and `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer`. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU. **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: ba93ea4418e3b8440fc563ad3b270e4f328cd166 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1581 (PresentX 1581) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14437 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer (not installed on this host); Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
DarkPanda69 commented 2026-11-25 23:09:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T22:32:53Z.


On a machine without the D3D12 debug layer, gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer shows as passed with no SKIPPED line in a normal test run, so it is easy to count it as coverage when it tested nothing.

Head ba93ea4 applied on main 6d12f58, RX 9070 XT, Windows 11 Pro 26200, no d3d12SDKLayers.dll installed:

  • cargo test -p xcl --lib -- gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer --nocapture prints SKIPPED ...: no D3D12 debug layer (...) and then ... ok.
  • The same run without --nocapture (and the whole-suite runs CONTRIBUTING.md asks for) prints only ... ok, with no SKIPPED line.

The cause is the forwarding loop in the parent test:

for line in stderr.lines().filter(|l| l.starts_with("SKIPPED ")) {
    eprintln!("{line}");
}

libtest captures eprintln! output of a passing test, so the child's SKIPPED line is dropped. runner::skip_test writes with writeln!(std::io::stderr(), ...), which is not captured, and that is why other skips do show up. Writing the forwarded line the same way would keep it visible:

use std::io::Write;
let _ = writeln!(std::io::stderr(), "{line}");

I have not built or run that change.

AI use: Claude Code (Claude Opus 5.5) found this while testing the PR on this machine and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7176498882 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7176498882). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T22:32:53Z. --- On a machine without the D3D12 debug layer, `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` shows as passed with no `SKIPPED` line in a normal test run, so it is easy to count it as coverage when it tested nothing. Head `ba93ea4` applied on `main` `6d12f58`, RX 9070 XT, Windows 11 Pro 26200, no `d3d12SDKLayers.dll` installed: - `cargo test -p xcl --lib -- gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer --nocapture` prints `SKIPPED ...: no D3D12 debug layer (...)` and then `... ok`. - The same run without `--nocapture` (and the whole-suite runs CONTRIBUTING.md asks for) prints only `... ok`, with no `SKIPPED` line. The cause is the forwarding loop in the parent test: ```rust for line in stderr.lines().filter(|l| l.starts_with("SKIPPED ")) { eprintln!("{line}"); } ``` libtest captures `eprintln!` output of a passing test, so the child's `SKIPPED` line is dropped. `runner::skip_test` writes with `writeln!(std::io::stderr(), ...)`, which is not captured, and that is why other skips do show up. Writing the forwarded line the same way would keep it visible: ```rust use std::io::Write; let _ = writeln!(std::io::stderr(), "{line}"); ``` I have not built or run that change. AI use: Claude Code (Claude Opus 5.5) found this while testing the PR on this machine and wrote this comment.
luckyteagirl commented 2026-11-26 07:19:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T07:19:08Z.

Review: COMMENTED


Could the companion SRV and the console T# use the same normalized descriptor? For a 4x MSAA texture with an explicit TEXTURE2D UAV descriptor, the new code publishes a TEXTURE2DMS SRV, but dev_create_uav_x still builds the T# from the original UAV dimension and labels it non-MSAA. With a default UAV descriptor, the T# gets the MSAA type but hardcodes one mip, which encodes LAST_LEVEL=0 instead of 2 for four samples.

The existing srv_tsharp_from_desc helper can build the metadata from the normalized native SRV and the actual sample count. A focused fixture could check the published SRV dimension and decoded T# type and sample count for both descriptor forms. Exact-head source review of ba93ea4418e3b8440fc563ad3b270e4f328cd166. No GPU run. AI-assisted review with Codex.

<!-- greyfinch-sync:ivall/xcl:review:6069956294 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#pullrequestreview-6069956294). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T07:19:08Z. **Review:** COMMENTED --- Could the companion SRV and the console T# use the same normalized descriptor? For a 4x MSAA texture with an explicit TEXTURE2D UAV descriptor, the new code publishes a TEXTURE2DMS SRV, but `dev_create_uav_x` still builds the T# from the original UAV dimension and labels it non-MSAA. With a default UAV descriptor, the T# gets the MSAA type but hardcodes one mip, which encodes LAST_LEVEL=0 instead of 2 for four samples. The existing `srv_tsharp_from_desc` helper can build the metadata from the normalized native SRV and the actual sample count. A focused fixture could check the published SRV dimension and decoded T# type and sample count for both descriptor forms. Exact-head source review of `ba93ea4418e3b8440fc563ad3b270e4f328cd166`. No GPU run. AI-assisted review with Codex.
ClosetPie107 commented 2026-11-27 12:51:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T12:51:52Z.


Independent test report under Wine/Proton (not native Windows) for head ba93ea44.

Setup

  • AMD Radeon RX 9070 (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, CachyOS Linux 7.3.5
  • Proton Experimental experimental-11.0-20261112, vkd3d-proton master ec207194 with a local patch dropping the lpVtbl checks in d3d12_command_allocator_from_iface / d3d12_command_list_from_iface, DXC 1.9.2609.5, Rust 1.96.0, x86_64-pc-windows-gnu
  • Head merged onto main 83b00818, test commit 44f6b2fc

Tests (debug, --test-threads=1)

  • hle::d3d12x::real::: 65 passed, 0 failed (main: 63 passed, 0 failed). uav_companion_srv_msaa_typeless_and_null_uav_dimensions runs; gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer returns early here because vkd3d-proton has no D3D12 debug layer (0x887A002D), so its checks did not run (with XCL_REQUIRE_GPU=wave64 it fails for that reason).
  • cargo test --workspace --no-fail-fast -- --test-threads=4, lib binary: 1322 passed, 9 failed, 27 ignored (main the same run: 1320 passed, 9 failed, 27 ignored). The failures are the same as main's.

Retail title, 300 s (release, from a copy of the same warm-cache snapshot; XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence, A pressed every 10 s)

  • 1 run: exit 0, no crash, no device removal, 1,882 presents. main, 4 runs: all clean, 1,892–2,122. This title never removed the device here on main either, so the run does not show the fix, only that nothing broke.

Not tested

  • Native Windows, NVIDIA/Intel
  • The debug-layer test (no debug layer under vkd3d-proton)

AI use

  • Claude Code (Claude Opus 5.5) wrote the test scripts, ran the tests and runs on this machine and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7218766590 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7218766590). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T12:51:52Z. --- Independent test report under Wine/Proton (not native Windows) for head `ba93ea44`. **Setup** - AMD Radeon RX 9070 (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, CachyOS Linux 7.3.5 - Proton Experimental `experimental-11.0-20261112`, vkd3d-proton master `ec207194` with a local patch dropping the `lpVtbl` checks in `d3d12_command_allocator_from_iface` / `d3d12_command_list_from_iface`, DXC `1.9.2609.5`, Rust 1.96.0, `x86_64-pc-windows-gnu` - Head merged onto `main` `83b00818`, test commit `44f6b2fc` **Tests** (debug, `--test-threads=1`) - `hle::d3d12x::real::`: 65 passed, 0 failed (`main`: 63 passed, 0 failed). `uav_companion_srv_msaa_typeless_and_null_uav_dimensions` runs; `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` returns early here because vkd3d-proton has no D3D12 debug layer (`0x887A002D`), so its checks did not run (with `XCL_REQUIRE_GPU=wave64` it fails for that reason). - `cargo test --workspace --no-fail-fast -- --test-threads=4`, lib binary: 1322 passed, 9 failed, 27 ignored (`main` the same run: 1320 passed, 9 failed, 27 ignored). The failures are the same as `main`'s. **Retail title, 300 s** (release, from a copy of the same warm-cache snapshot; `XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence`, `A` pressed every 10 s) - 1 run: exit 0, no crash, no device removal, 1,882 presents. `main`, 4 runs: all clean, 1,892–2,122. This title never removed the device here on `main` either, so the run does not show the fix, only that nothing broke. **Not tested** - Native Windows, NVIDIA/Intel - The debug-layer test (no debug layer under vkd3d-proton) **AI use** - Claude Code (Claude Opus 5.5) wrote the test scripts, ran the tests and runs on this machine and wrote this report.
Kalmarv commented 2026-11-28 23:18:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-28T23:18:05Z.


merge-check
base: 5f0bfdbc12
head: ba93ea4418
merge: clean (trial merge b836d310468e0dad0ce020be428fa94ebb34c95c, local, not pushed; git diff --check clean)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2597 passed, 0 failed, 49 ignored; SKIPPED: 26 (21 no wave64 on this 32-lane GPU, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows); failing: none. Both new tests ran and passed, including gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer under the D3D12 debug layer. A first run with the Windows SDK's DXC 1.7 also failed gpu::recomp::link_tests::{gpu_linked_memory_accessors, linked_programs_keep_their_declarations} (DXC 1.7: "attribute WaveSize only valid on entry point function"). This PR doesn't touch that code, and both pass with DXC 1.9.
review: none blocking; whole diff read (real.rs: null_uav_desc ignores ViewDimension 0 and maps 7 to a Texture2DArray null UAV; the unsupported-typed-UAV fallback now uses null_uav_desc, so null Texture1DArray / Texture2DArray / Texture3D UAVs get ArraySize / WSize 1 instead of 0; MSAA companion SRVs become TEXTURE2DMS / TEXTURE2DMSARRAY; concrete_srv_format after pc_srv). Notes, none blocking:

  1. A UAV desc of Texture2D (4) / Texture2DArray (5) on an MSAA resource now gets a TEXTURE2DMS(ARRAY) companion SRV, but the T# written for that slot still comes from view_shape(.., dim 4/5, ..), i.e. a non-MSAA image type. A shader reading that slot through the T# would then use a non-MS access on an MS descriptor. Before this PR the same call created an invalid SRV (device removed), so this is still a step forward; it is just not exercised by any test.
  2. concrete_srv_format picks FLOAT / UNORM for typeless resources (R32_TYPELESS -> R32_FLOAT, R8G8B8A8_TYPELESS -> R8G8B8A8_UNORM ...). A shader that reads UINT data through that companion SRV gets converted values. This only applies where the view's format was UNKNOWN or the desc was NULL on a typeless resource, which was an invalid descriptor before.
    performance: no per-frame cost: view-creation paths only (one extra match per companion SRV). Title runs (below): no difference in exits, crashes or removals.
    title run (fast-world harness, same safe cache snapshot type for both, base vs. merged PR, release builds, run as the same firewalled exe):
  • base 5f0bfdbc: exit 0x0, crashes 0, device removals 0, no system display events; world entry at 116.5 s, peak commit 29,463 MB, 69 WARN lines.
  • PR merge b836d310: exit 0x0, crashes 0, device removals 0, no system display events; world entry at 102.6 s, peak commit 28,765 MB, 71 WARN lines (same UAV/SRV warnings as base, no new kinds).
  • Both runs ~267 s, each from its own fresh snapshot of the same warm cache. That cache doesn't match this main's translator identity, so both spent the run compiling pipelines (up to ~114 s for one) and showed no frames in the steady window: frame rate not compared. The runs only show that the PR adds no crash, removal or new warning on the way into the world.
    verdict: safe to merge
    hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, DXC 1.9.2609 via XCL_DXC_DIR; title runs from release builds. Claude Code, Claude Opus 5.5: merge, build, suite, title runs and full-diff review; this report.
<!-- greyfinch-sync:ivall/xcl:comment:7247337720 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7247337720). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-28T23:18:05Z. --- merge-check base: 5f0bfdbc12bff67924e5e1d39efa05ffa9c51ba5 head: ba93ea4418e3b8440fc563ad3b270e4f328cd166 merge: clean (trial merge b836d310468e0dad0ce020be428fa94ebb34c95c, local, not pushed; `git diff --check` clean) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2597 passed, 0 failed, 49 ignored; SKIPPED: 26 (21 no wave64 on this 32-lane GPU, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows); failing: none. Both new tests ran and passed, including `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` under the D3D12 debug layer. A first run with the Windows SDK's DXC 1.7 also failed `gpu::recomp::link_tests::{gpu_linked_memory_accessors, linked_programs_keep_their_declarations}` (DXC 1.7: "attribute WaveSize only valid on entry point function"). This PR doesn't touch that code, and both pass with DXC 1.9. review: none blocking; whole diff read (`real.rs`: `null_uav_desc` ignores ViewDimension 0 and maps 7 to a Texture2DArray null UAV; the unsupported-typed-UAV fallback now uses `null_uav_desc`, so null Texture1DArray / Texture2DArray / Texture3D UAVs get ArraySize / WSize 1 instead of 0; MSAA companion SRVs become TEXTURE2DMS / TEXTURE2DMSARRAY; `concrete_srv_format` after `pc_srv`). Notes, none blocking: 1. A UAV desc of Texture2D (4) / Texture2DArray (5) on an MSAA resource now gets a TEXTURE2DMS(ARRAY) companion SRV, but the T# written for that slot still comes from `view_shape(.., dim 4/5, ..)`, i.e. a non-MSAA image type. A shader reading that slot through the T# would then use a non-MS access on an MS descriptor. Before this PR the same call created an invalid SRV (device removed), so this is still a step forward; it is just not exercised by any test. 2. `concrete_srv_format` picks FLOAT / UNORM for typeless resources (R32_TYPELESS -> R32_FLOAT, R8G8B8A8_TYPELESS -> R8G8B8A8_UNORM ...). A shader that reads UINT data through that companion SRV gets converted values. This only applies where the view's format was UNKNOWN or the desc was NULL on a typeless resource, which was an invalid descriptor before. performance: no per-frame cost: view-creation paths only (one extra match per companion SRV). Title runs (below): no difference in exits, crashes or removals. title run (fast-world harness, same safe cache snapshot type for both, base vs. merged PR, release builds, run as the same firewalled exe): - base `5f0bfdbc`: exit 0x0, crashes 0, device removals 0, no system display events; world entry at 116.5 s, peak commit 29,463 MB, 69 WARN lines. - PR merge `b836d310`: exit 0x0, crashes 0, device removals 0, no system display events; world entry at 102.6 s, peak commit 28,765 MB, 71 WARN lines (same UAV/SRV warnings as base, no new kinds). - Both runs ~267 s, each from its own fresh snapshot of the same warm cache. That cache doesn't match this main's translator identity, so both spent the run compiling pipelines (up to ~114 s for one) and showed no frames in the steady window: frame rate not compared. The runs only show that the PR adds no crash, removal or new warning on the way into the world. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, DXC 1.9.2609 via XCL_DXC_DIR; title runs from release builds. Claude Code, Claude Opus 5.5: merge, build, suite, title runs and full-diff review; this report.
throny commented 2026-11-28 23:26:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:26:24Z.


merge-check claim
head: ba93ea4418

<!-- greyfinch-sync:ivall/xcl:comment:7247431522 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7247431522). Originally posted by [throny](https://github.com/throny) on 2026-11-28T23:26:24Z. --- merge-check claim head: ba93ea4418e3b8440fc563ad3b270e4f328cd166
throny commented 2026-11-29 00:11:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:11:38Z.


merge-check
base: 851bf7f9
head: ba93ea4418
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2598 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at 851bf7f9: 2596 passed, 0 failed, 49 ignored. The merge with main (which split the function this touches) is clean.
review: the view-dimension rules for the null UAV and for multisampled resources are right. One point from the thread is still open and I can follow it in the code: when the title's view is a plain 2D UAV of a multisampled resource, the console texture descriptor is still built from the UAV's (non-multisampled) shape while the companion SRV is now a multisampled view, so the shader reads it with the wrong texture type; main's existing helper that builds the descriptor from the resource description would give the matching one. Also unanswered: the forwarded SKIPPED line is printed through a call the test harness captures, so on a machine without the debug layer the test passes silently. Minor: the number type picked for a typeless format is a guess and not consistent between formats.
performance: one format lookup per UAV creation. No translator source.
verdict: not yet: make the descriptor match the multisampled companion view, and let the skip show.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7247940698 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7247940698). Originally posted by [throny](https://github.com/throny) on 2026-11-29T00:11:38Z. --- merge-check base: 851bf7f9 head: ba93ea4418e3b8440fc563ad3b270e4f328cd166 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2598 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at 851bf7f9: 2596 passed, 0 failed, 49 ignored. The merge with main (which split the function this touches) is clean. review: the view-dimension rules for the null UAV and for multisampled resources are right. One point from the thread is still open and I can follow it in the code: when the title's view is a plain 2D UAV of a multisampled resource, the console texture descriptor is still built from the UAV's (non-multisampled) shape while the companion SRV is now a multisampled view, so the shader reads it with the wrong texture type; main's existing helper that builds the descriptor from the resource description would give the matching one. Also unanswered: the forwarded SKIPPED line is printed through a call the test harness captures, so on a machine without the debug layer the test passes silently. Minor: the number type picked for a typeless format is a guess and not consistent between formats. performance: one format lookup per UAV creation. No translator source. verdict: not yet: make the descriptor match the multisampled companion view, and let the skip show. hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
thehollowedone commented 2026-12-01 01:57:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-12-01T01:57:54Z.


Following the blocking merge check, here is a narrow candidate for the console-descriptor mismatch on head ba93ea44. The companion SRV selects TEXTURE2DMS or TEXTURE2DMSARRAY, but the final T# is still built from the original UAV shape with LAST_LEVEL=0. The existing srv_tsharp_from_desc helper uses the resolved SRV and the resource's sample count.

Candidate descriptor diff
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
@@
         g(this, srv_res, &srv, slot.pc_srv);
         super::console_heap::publish(&slot, false);
+        if !deny_srv && matches!(
+            srv.ViewDimension,
+            D3D12_SRV_DIMENSION_TEXTURE2DMS | D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY
+        ) {
+            if let Some(t) = srv_tsharp_from_desc(slot.index, &rd, Some(&srv)) {
+                return super::console_heap::write(&slot, &t);
+            }
+        }
     }

This leaves the existing UAV T# path in place for ordinary views and the null companion case. Please extend the tests to decode the published T# for explicit and default 4× 2D and 2D-array views: the type should match the companion SRV, LAST_LEVEL=2, MAX_MIP=0, and the array slice count should be preserved. The separate captured SKIPPED fix is already posted.

This candidate was checked against the source, but not applied, compiled, or run on a GPU. AI use: Codex (GPT-6.2 Sol) traced the call path and drafted the diff; Codex (GPT-6.2 Astra) independently checked the encoder and test gap.

<!-- greyfinch-sync:ivall/xcl:comment:7298086261 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7298086261). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-12-01T01:57:54Z. --- Following [the blocking merge check](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7247940698), here is a narrow candidate for the console-descriptor mismatch on [head `ba93ea44`](https://github.com/xcl-dev/xcl/commit/ba93ea4418e3b8440fc563ad3b270e4f328cd166). The companion SRV selects `TEXTURE2DMS` or `TEXTURE2DMSARRAY`, but the final T# is still built from the original UAV shape with `LAST_LEVEL=0`. The existing `srv_tsharp_from_desc` helper uses the resolved SRV and the resource's sample count. <details> <summary>Candidate descriptor diff</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs @@ g(this, srv_res, &srv, slot.pc_srv); super::console_heap::publish(&slot, false); + if !deny_srv && matches!( + srv.ViewDimension, + D3D12_SRV_DIMENSION_TEXTURE2DMS | D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY + ) { + if let Some(t) = srv_tsharp_from_desc(slot.index, &rd, Some(&srv)) { + return super::console_heap::write(&slot, &t); + } + } } ``` </details> This leaves the existing UAV T# path in place for ordinary views and the null companion case. Please extend the tests to decode the published T# for explicit and default 4× 2D and 2D-array views: the type should match the companion SRV, `LAST_LEVEL=2`, `MAX_MIP=0`, and the array slice count should be preserved. The separate [captured `SKIPPED` fix](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7176498882) is already posted. This candidate was checked against the source, but not applied, compiled, or run on a GPU. AI use: Codex (GPT-6.2 Sol) traced the call path and drafted the diff; Codex (GPT-6.2 Astra) independently checked the encoder and test gap.
futurepro62 commented 2026-12-01 05:54:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-12-01T05:54:35Z.


merge-check
base: d0832e614f
head: ba93ea4418
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> NVIDIA: 2888 passed, 4 failed, 51 ignored, 24 SKIPPED lines (base alone: 2890 passed, 0 failed, 51 ignored). All 4 failures are in hle::d3d12x::title_textures::tests, which this PR does not touch. One assertion failed (placed_title_textures_share_vram_and_preserve_pixels: "superseded unaligned extra_pages must be reclaimed immediately"), and the other three (stream_recheck_*) then failed on the lock it poisoned. Run alone 3 times on this merge and 3 times on the base, hle::d3d12x::title_textures gave 65 passed, 0 failed every time, so it is intermittent under the full parallel suite, not this PR. AMD Radeon iGPU (XCL_ADAPTER=radeon): the lib test binary stops with exit 0x80004005, as on the base alone (#3488), and the remaining failures are the same set with and without this PR. Radeon, cargo test -p xcl --lib hle::d3d12x::real -- --test-threads=4: 172 passed, 0 failed (base: 170 passed, 0 failed). Both new tests passed with --nocapture and printed no SKIPPED line, so gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer really ran under the debug layer. Its child makes its device with create_device(None), though, which is the default adapter (the RTX here) even with XCL_ADAPTER=radeon, so that test ran on NVIDIA only.
review: whole diff read on the merge result. The null-UAV and MSAA companion-SRV dimension rules are right, and concrete_srv_format is a sound map. I agree with throny's open point, and it is still in the merged code. In dev_create_uav_x (merged real.rs ~3811-3845), the console T# is built from the title's UAV view dimension: view_shape(..., dim = desc.ViewDimension, ...), then xcl_image_for_view(..., ty, ...). A plain 2D (4) or 2D-array (5) UAV of a multisampled resource therefore gets a D2 / D2Array T#, with LAST_LEVEL from mips rather than log2(samples). The same slot's PC companion SRV (uav_companion_srv, msaa at ~3644) is now TEXTURE2DMS / TEXTURE2DMSARRAY. A translated shader reading the slot then follows the T#'s type over an MS view. With no UAV desc the two agree (resource_dim_to_view gives 6/7), so only an explicit 2D UAV desc on an MSAA resource is affected. srv_tsharp_from_desc(slot.index, &rd, Some(&srv)) (~1910), already on main, builds the matching MS T# from the companion SRV (D2Msaa, LAST_LEVEL = log2(samples)). Using it when msaa is true would close this. throny's second point also holds but is minor: the parent test forwards the child's SKIPPED lines with eprintln!, which libtest captures for a passing test, so a machine without the debug layer passes silently.
performance: none at run time beyond view creation (one more match per UAV creation).
verdict: not yet: for an explicit 2D / 2D-array UAV of a multisampled resource, write the T# from the multisampled companion SRV (e.g. srv_tsharp_from_desc) so its type matches the MS view; optionally print the forwarded SKIPPED lines outside libtest's capture
hardware / tool and model: RTX 5070 Ti 16 GB + AMD Radeon iGPU, Ryzen 7 9800X3D, Windows 11 26300, debug test profile. Claude Code, Claude Opus 5.5: merge, build, both suites, solo reruns and full-diff review of the merge result.

<!-- greyfinch-sync:ivall/xcl:comment:7302267704 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7302267704). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-12-01T05:54:35Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: ba93ea4418e3b8440fc563ad3b270e4f328cd166 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> NVIDIA: 2888 passed, 4 failed, 51 ignored, 24 SKIPPED lines (base alone: 2890 passed, 0 failed, 51 ignored). All 4 failures are in `hle::d3d12x::title_textures::tests`, which this PR does not touch. One assertion failed (`placed_title_textures_share_vram_and_preserve_pixels`: "superseded unaligned extra_pages must be reclaimed immediately"), and the other three (`stream_recheck_*`) then failed on the lock it poisoned. Run alone 3 times on this merge and 3 times on the base, `hle::d3d12x::title_textures` gave 65 passed, 0 failed every time, so it is intermittent under the full parallel suite, not this PR. AMD Radeon iGPU (`XCL_ADAPTER=radeon`): the lib test binary stops with exit 0x80004005, as on the base alone (#3488), and the remaining failures are the same set with and without this PR. Radeon, `cargo test -p xcl --lib hle::d3d12x::real -- --test-threads=4`: 172 passed, 0 failed (base: 170 passed, 0 failed). Both new tests passed with `--nocapture` and printed no SKIPPED line, so `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` really ran under the debug layer. Its child makes its device with `create_device(None)`, though, which is the default adapter (the RTX here) even with `XCL_ADAPTER=radeon`, so that test ran on NVIDIA only. review: whole diff read on the merge result. The null-UAV and MSAA companion-SRV dimension rules are right, and `concrete_srv_format` is a sound map. I agree with throny's open point, and it is still in the merged code. In `dev_create_uav_x` (merged `real.rs` ~3811-3845), the console T# is built from the title's UAV view dimension: `view_shape(..., dim = desc.ViewDimension, ...)`, then `xcl_image_for_view(..., ty, ...)`. A plain 2D (4) or 2D-array (5) UAV of a multisampled resource therefore gets a `D2` / `D2Array` T#, with LAST_LEVEL from mips rather than `log2(samples)`. The same slot's PC companion SRV (`uav_companion_srv`, `msaa` at ~3644) is now `TEXTURE2DMS` / `TEXTURE2DMSARRAY`. A translated shader reading the slot then follows the T#'s type over an MS view. With no UAV desc the two agree (`resource_dim_to_view` gives 6/7), so only an explicit 2D UAV desc on an MSAA resource is affected. `srv_tsharp_from_desc(slot.index, &rd, Some(&srv))` (~1910), already on main, builds the matching MS T# from the companion SRV (`D2Msaa`, LAST_LEVEL = log2(samples)). Using it when `msaa` is true would close this. throny's second point also holds but is minor: the parent test forwards the child's SKIPPED lines with `eprintln!`, which libtest captures for a passing test, so a machine without the debug layer passes silently. performance: none at run time beyond view creation (one more match per UAV creation). verdict: not yet: for an explicit 2D / 2D-array UAV of a multisampled resource, write the T# from the multisampled companion SRV (e.g. `srv_tsharp_from_desc`) so its type matches the MS view; optionally print the forwarded SKIPPED lines outside libtest's capture hardware / tool and model: RTX 5070 Ti 16 GB + AMD Radeon iGPU, Ryzen 7 9800X3D, Windows 11 26300, debug test profile. Claude Code, Claude Opus 5.5: merge, build, both suites, solo reruns and full-diff review of the merge result.
thehollowedone commented 2026-12-01 06:14:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-12-01T06:14:32Z.


Follow-up to my candidate correction, tested against PR head ba93ea4 merged locally onto current main (d0832e6). The MSAA companion SRV is created, but the console T# at its UAV slot still describes the original UAV view. On a four-sample resource, its LAST_LEVEL is 0 instead of 2. This is a descriptor mismatch; I have not established a visible title symptom.

I added a GPU regression comparing the entire console T# with the T# for the companion SRV actually published. It covers default and explicit UAVs for Texture2DMS and Texture2DMSArray. The debug-layer test failed on the unchanged PR merge (0 passed, 1 failed; slot 3's T# differed). With the small correction below, cargo test --locked -p xcl --lib hle::d3d12x::real::uav_companion_srv_tests:: -- --nocapture --test-threads=1 passed 4/4, 0 failed, 0 ignored, no skips on Windows 11 build 26300, RTX 3080 Ti (621.40), Ryzen 7 9800X3D, Rust 1.99.1 MSVC. The same focused module passed 4/4 with XCL_ADAPTER=warp; the debug-layer child explicitly selected the DXGI WARP adapter in that run. Setting XCL_ADAPTER=warp alone does not redirect this test's direct create_device(None) call, so the test change below makes that selection explicit.

Tested candidate correction and regression
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
@@ -3839,6 +3839,11 @@ unsafe extern "system" fn dev_create_uav_x(this: *mut c_void, res: *mut c_void,
         g(this, srv_res, &srv, slot.pc_srv);
         super::console_heap::publish(&slot, false, srv_res as usize);
+        if !deny_srv && matches!(srv.ViewDimension, D3D12_SRV_DIMENSION_TEXTURE2DMS | D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY) {
+            if let Some(t) = srv_tsharp_from_desc(slot.index, &rd, Some(&srv)) {
+                return super::console_heap::write(&slot, &t);
+            }
+        }
     }
@@ -14939,7 +14944,14 @@ void main() {
-            let Ok(dev) = crate::gpu::agility::create_device(None, D3D_FEATURE_LEVEL_11_0) else {
+            let warp = if std::env::var("XCL_ADAPTER").as_deref() == Ok("warp") {
+                use windows::Win32::Graphics::Dxgi::{CreateDXGIFactory1, IDXGIAdapter, IDXGIFactory4};
+                let factory = CreateDXGIFactory1::<IDXGIFactory4>().expect("DXGI factory");
+                Some(factory.EnumWarpAdapter::<IDXGIAdapter>().expect("WARP adapter").cast::<windows::core::IUnknown>().expect("WARP IUnknown"))
+            } else {
+                None
+            };
+            let Ok(dev) = crate::gpu::agility::create_device(warp.as_ref(), D3D_FEATURE_LEVEL_11_0) else {
@@ -15040,9 +15052,34 @@ void main() {
             dev_create_uav_x(dev.as_raw(), ms2da.as_raw(), std::ptr::null_mut(), &u_ms2da, slot_cpu(4));
+            let u_ms2d = D3D12_UNORDERED_ACCESS_VIEW_DESC {
+                Format: DXGI_FORMAT_R8G8B8A8_UNORM,
+                ViewDimension: D3D12_UAV_DIMENSION_TEXTURE2D,
+                ..Default::default()
+            };
+            dev_create_uav_x(dev.as_raw(), ms2d.as_raw(), std::ptr::null_mut(), &u_ms2d, slot_cpu(7));
+            dev_create_uav_x(dev.as_raw(), ms2da.as_raw(), std::ptr::null_mut(), std::ptr::null(), slot_cpu(8));
             let errs2 = take_errors(&iq);
             assert!(errs2.is_empty(), "MSAA companion SRV debug errors: {errs2:#?}");
 
+            // The console T# must describe the SRV actually published for each MSAA UAV.
+            for (k, resource, uav) in [
+                (3, &ms2d, None),
+                (4, &ms2da, Some(&u_ms2da)),
+                (7, &ms2d, Some(&u_ms2d)),
+                (8, &ms2da, None),
+            ] {
+                let rd = resource.GetDesc();
+                let slot = super::super::console_heap::slot(slot_cpu(k)).expect("console UAV slot");
+                let srv = uav_companion_srv(Some(&rd), uav, false).expect("MSAA companion SRV");
+                let expected = srv_tsharp_from_desc(slot.index, &rd, Some(&srv)).expect("MSAA T#");
+                let mut actual = [0u32; 8];
+                std::ptr::copy_nonoverlapping(slot.at as *const u32, actual.as_mut_ptr(), 8);
+                assert_eq!(actual, expected, "console T# differs from the published MSAA companion SRV at slot {k}");
+                assert_eq!((actual[3] >> 16) & 0xf, 2, "four samples require LAST_LEVEL=2");
+                assert_eq!((actual[5] >> 4) & 0xf, 0, "MSAA views have MAX_MIP=0");
+            }

This validates the descriptor correction, not the full PR for merge. The full workspace suite and paired retail smoke were not run on this uncommitted candidate. AI use: OpenAI Codex (GPT-6.2 Sol) prepared the regression, correction, and report and ran the focused tests.

<!-- greyfinch-sync:ivall/xcl:comment:7302651119 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7302651119). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-12-01T06:14:32Z. --- Follow-up to my [candidate correction](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7298086261), tested against [PR head `ba93ea4`](https://github.com/xcl-dev/xcl/commit/ba93ea4418e3b8440fc563ad3b270e4f328cd166) merged locally onto current `main` (`d0832e6`). The MSAA companion SRV is created, but the console T# at its UAV slot still describes the original UAV view. On a four-sample resource, its `LAST_LEVEL` is 0 instead of 2. This is a descriptor mismatch; I have not established a visible title symptom. I added a GPU regression comparing the entire console T# with the T# for the companion SRV actually published. It covers default and explicit UAVs for Texture2DMS and Texture2DMSArray. The debug-layer test failed on the unchanged PR merge (0 passed, 1 failed; slot 3's T# differed). With the small correction below, `cargo test --locked -p xcl --lib hle::d3d12x::real::uav_companion_srv_tests:: -- --nocapture --test-threads=1` passed 4/4, 0 failed, 0 ignored, no skips on Windows 11 build 26300, RTX 3080 Ti (621.40), Ryzen 7 9800X3D, Rust 1.99.1 MSVC. The same focused module passed 4/4 with `XCL_ADAPTER=warp`; the debug-layer child explicitly selected the DXGI WARP adapter in that run. Setting `XCL_ADAPTER=warp` alone does not redirect this test's direct `create_device(None)` call, so the test change below makes that selection explicit. <details> <summary>Tested candidate correction and regression</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs @@ -3839,6 +3839,11 @@ unsafe extern "system" fn dev_create_uav_x(this: *mut c_void, res: *mut c_void, g(this, srv_res, &srv, slot.pc_srv); super::console_heap::publish(&slot, false, srv_res as usize); + if !deny_srv && matches!(srv.ViewDimension, D3D12_SRV_DIMENSION_TEXTURE2DMS | D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY) { + if let Some(t) = srv_tsharp_from_desc(slot.index, &rd, Some(&srv)) { + return super::console_heap::write(&slot, &t); + } + } } @@ -14939,7 +14944,14 @@ void main() { - let Ok(dev) = crate::gpu::agility::create_device(None, D3D_FEATURE_LEVEL_11_0) else { + let warp = if std::env::var("XCL_ADAPTER").as_deref() == Ok("warp") { + use windows::Win32::Graphics::Dxgi::{CreateDXGIFactory1, IDXGIAdapter, IDXGIFactory4}; + let factory = CreateDXGIFactory1::<IDXGIFactory4>().expect("DXGI factory"); + Some(factory.EnumWarpAdapter::<IDXGIAdapter>().expect("WARP adapter").cast::<windows::core::IUnknown>().expect("WARP IUnknown")) + } else { + None + }; + let Ok(dev) = crate::gpu::agility::create_device(warp.as_ref(), D3D_FEATURE_LEVEL_11_0) else { @@ -15040,9 +15052,34 @@ void main() { dev_create_uav_x(dev.as_raw(), ms2da.as_raw(), std::ptr::null_mut(), &u_ms2da, slot_cpu(4)); + let u_ms2d = D3D12_UNORDERED_ACCESS_VIEW_DESC { + Format: DXGI_FORMAT_R8G8B8A8_UNORM, + ViewDimension: D3D12_UAV_DIMENSION_TEXTURE2D, + ..Default::default() + }; + dev_create_uav_x(dev.as_raw(), ms2d.as_raw(), std::ptr::null_mut(), &u_ms2d, slot_cpu(7)); + dev_create_uav_x(dev.as_raw(), ms2da.as_raw(), std::ptr::null_mut(), std::ptr::null(), slot_cpu(8)); let errs2 = take_errors(&iq); assert!(errs2.is_empty(), "MSAA companion SRV debug errors: {errs2:#?}"); + // The console T# must describe the SRV actually published for each MSAA UAV. + for (k, resource, uav) in [ + (3, &ms2d, None), + (4, &ms2da, Some(&u_ms2da)), + (7, &ms2d, Some(&u_ms2d)), + (8, &ms2da, None), + ] { + let rd = resource.GetDesc(); + let slot = super::super::console_heap::slot(slot_cpu(k)).expect("console UAV slot"); + let srv = uav_companion_srv(Some(&rd), uav, false).expect("MSAA companion SRV"); + let expected = srv_tsharp_from_desc(slot.index, &rd, Some(&srv)).expect("MSAA T#"); + let mut actual = [0u32; 8]; + std::ptr::copy_nonoverlapping(slot.at as *const u32, actual.as_mut_ptr(), 8); + assert_eq!(actual, expected, "console T# differs from the published MSAA companion SRV at slot {k}"); + assert_eq!((actual[3] >> 16) & 0xf, 2, "four samples require LAST_LEVEL=2"); + assert_eq!((actual[5] >> 4) & 0xf, 0, "MSAA views have MAX_MIP=0"); + } ``` </details> This validates the descriptor correction, not the full PR for merge. The full workspace suite and paired retail smoke were not run on this uncommitted candidate. AI use: OpenAI Codex (GPT-6.2 Sol) prepared the regression, correction, and report and ran the focused tests.
Foniass commented 2026-12-01 08:13:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:13:29Z.


Triage (#1607) – head ba93ea4

No open or merged PR makes the same change. #3319 sanitizes formats of null-resource SRVs/RTVs in other functions and does not touch uav_companion_srv. #2518 (same issue #2461) changes console_list.rs only. #1914 (merged) added the companion SRVs this fixes.
No problems found in the diff. Note that concrete_srv_format picks UNORM/FLOAT for typeless families, so an integer-typed view on a typeless resource reads as float in the companion SRV.
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:7305036304 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7305036304). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:13:29Z. --- **Triage (#1607)** – head ba93ea4 No open or merged PR makes the same change. #3319 sanitizes formats of null-resource SRVs/RTVs in other functions and does not touch `uav_companion_srv`. #2518 (same issue #2461) changes `console_list.rs` only. #1914 (merged) added the companion SRVs this fixes. No problems found in the diff. Note that `concrete_srv_format` picks UNORM/FLOAT for typeless families, so an integer-typed view on a typeless resource reads as float in the companion SRV. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Decodere commented 2026-12-02 08:45:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T08:45:25Z.


Diff review (head ba93ea441, read-only code review — not a test report):

The null_uav_desc dimension/array-size fix (real.rs:2117, :2427-2469), uav_companion_srv MSAA routing (real.rs:2569-2629), and concrete_srv_format mapping (real.rs:2474-2501, :2646) are clean and well-scoped. Two open items remain on ba93ea441 that are worth fixing before merge:

  1. dev_create_uav_x still writes a mismatched console T# for both explicit and default MSAA UAVs (crates/xcl/src/hle/d3d12x/real.rs:2724-2755, :2569-2629, :1155-1231; crates/xcl/src/gpu/desc.rs:627-648):

    • Explicit MSAA UAV (desc with TEXTURE2D = 4 or TEXTURE2DARRAY = 5 on a SampleDesc.Count > 1 resource): uav_companion_srv publishes a TEXTURE2DMS / TEXTURE2DMSARRAY companion SRV (real.rs:2569, :2601-2606, :2622-2629), but dev_create_uav_x keeps the raw UAV dim (4 or 5, real.rs:2725-2735) when calling view_shape (real.rs:2739), so the console T# written at real.rs:2754 carries a non-MSAA ImageType::D2 / D2Array type while the PC descriptor at slot.index is MSAA.
    • Default MSAA UAV (desc == NULL): line 2737 gets dim = resource_dim_to_view(&rd) (6 / 7), so ty is D2Msaa / D2MsaaArray, but line 2754 calls xcl_image_for_view(slot.index, fmt, ty, w, h, d, 1) with hardcoded mips = 1 (desc.rs:639, :644), encoding LAST_LEVEL = 0 (t[3][19:16]) instead of log2(SampleDesc.Count) (2 for 4× MSAA).
      Building the T# with srv_tsharp_from_desc(slot.index, &rd, Some(&srv)) (real.rs:1203-1231, which sets LAST_LEVEL = log2(SampleDesc.Count) and MAX_MIP = 0 via view_shape_desc at real.rs:1185-1186) whenever a non-null MSAA companion SRV is created fixes both explicit and default forms.
  2. Parent test captures child SKIPPED lines on hosts without the D3D12 debug layer (crates/xcl/src/hle/d3d12x/real.rs:9058-9061):
    gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer forwards child SKIPPED lines via eprintln!("{line}") (real.rs:9060), which libtest captures and hides on a passing test unless --nocapture is passed. Using writeln!(std::io::stderr(), "{line}") (matching crates/xcl/src/gpu/recomp/runner.rs:634) ensures skips are reported visibly in normal test runs. (Minor: the child calls agility::create_device(None, ...) at real.rs:9085, so it always opens the default adapter rather than honoring XCL_ADAPTER.)

AI use: Antigravity (Gemini 4 Neon) audited the full diff against main and drafted this review.

<!-- greyfinch-sync:ivall/xcl:comment:7339884931 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7339884931). Originally posted by [Decodere](https://github.com/Decodere) on 2026-12-02T08:45:25Z. --- Diff review (head `ba93ea441`, read-only code review — not a test report): The `null_uav_desc` dimension/array-size fix (`real.rs:2117`, `:2427-2469`), `uav_companion_srv` MSAA routing (`real.rs:2569-2629`), and `concrete_srv_format` mapping (`real.rs:2474-2501`, `:2646`) are clean and well-scoped. Two open items remain on `ba93ea441` that are worth fixing before merge: 1. **`dev_create_uav_x` still writes a mismatched console T# for both explicit and default MSAA UAVs** (`crates/xcl/src/hle/d3d12x/real.rs:2724-2755`, `:2569-2629`, `:1155-1231`; `crates/xcl/src/gpu/desc.rs:627-648`): - **Explicit MSAA UAV (`desc` with `TEXTURE2D` = `4` or `TEXTURE2DARRAY` = `5` on a `SampleDesc.Count > 1` resource):** `uav_companion_srv` publishes a `TEXTURE2DMS` / `TEXTURE2DMSARRAY` companion SRV (`real.rs:2569`, `:2601-2606`, `:2622-2629`), but `dev_create_uav_x` keeps the raw UAV `dim` (`4` or `5`, `real.rs:2725-2735`) when calling `view_shape` (`real.rs:2739`), so the console T# written at `real.rs:2754` carries a non-MSAA `ImageType::D2` / `D2Array` type while the PC descriptor at `slot.index` is MSAA. - **Default MSAA UAV (`desc == NULL`):** line `2737` gets `dim = resource_dim_to_view(&rd)` (`6` / `7`), so `ty` is `D2Msaa` / `D2MsaaArray`, but line `2754` calls `xcl_image_for_view(slot.index, fmt, ty, w, h, d, 1)` with hardcoded `mips = 1` (`desc.rs:639`, `:644`), encoding `LAST_LEVEL = 0` (`t[3][19:16]`) instead of `log2(SampleDesc.Count)` (`2` for 4× MSAA). Building the T# with `srv_tsharp_from_desc(slot.index, &rd, Some(&srv))` (`real.rs:1203-1231`, which sets `LAST_LEVEL = log2(SampleDesc.Count)` and `MAX_MIP = 0` via `view_shape_desc` at `real.rs:1185-1186`) whenever a non-null MSAA companion SRV is created fixes both explicit and default forms. 2. **Parent test captures child `SKIPPED` lines on hosts without the D3D12 debug layer** (`crates/xcl/src/hle/d3d12x/real.rs:9058-9061`): `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` forwards child `SKIPPED` lines via `eprintln!("{line}")` (`real.rs:9060`), which `libtest` captures and hides on a passing test unless `--nocapture` is passed. Using `writeln!(std::io::stderr(), "{line}")` (matching `crates/xcl/src/gpu/recomp/runner.rs:634`) ensures skips are reported visibly in normal test runs. (Minor: the child calls `agility::create_device(None, ...)` at `real.rs:9085`, so it always opens the default adapter rather than honoring `XCL_ADAPTER`.) AI use: Antigravity (Gemini 4 Neon) audited the full diff against `main` and drafted this review.
stijn-boer commented 2026-12-02 17:58:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T17:58:26Z.


merge-check
base: 817eb1fc9f
head: ba93ea4418
verdict: not yet: the explicit MSAA companion view and console descriptor can disagree, and the workspace and retail smoke runs ended early.

Windows / AMD RDNA4 (native D3D12) — null UAV and MSAA companion SRV checks on ba93ea4

Clean merge onto main at 817eb1f (merge commit 4f603175ddf94c1ddc883af3802cdf8438f74658). git diff --check was clean.

Setup

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332
  • Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching d3d12SDKLayers.dll, DXC 1.9.2609.5

Tested

cargo build --workspace passed. cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command.

Build Passed Failed Ignored SKIPPED notices
main 340 3 23 0
Merged PR 340 3 23 0

Counts are partial because two test processes aborted on each build.

  • Tests that failed on the PR and passed on main — none observed in the comparable results.
  • Tests added by the PR — uav_companion_srv_msaa_typeless_and_null_uav_dimensions and gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer each passed in isolation with --exact --test-threads=1 --show-output --nocapture. Neither emitted a skip notice. The debug test used the default D3D12 device on the Radeon-only hardware setup and asserted no validation errors for those descriptor creation calls.
  • Debug-layer coverage — both debug-layer E2E tests, including DRED, and uploads_start_from_each_subresources_state passed.
Shared failures and process aborts
  • fuzz_validate_and_gpu_1, fuzz_validate_and_gpu_3, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs reported failures on both builds.
  • The library and gpu_compute_e2e test processes exited with 0xc0000409 on both builds.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary> with XCL_UMA_DRIVER=mixed for title hash 2c508222.

Build Exit Frames logged Device removals logged Peak commit
main 0xc0000409 None 0 1321 MB
Merged PR, first attempt 0xc0000409 None 0 5576 MB
Merged PR, repeat from fresh data root 0xc0000409 None 0 1321 MB

The first run's higher startup commit did not reproduce. These exits leave frame and steady-state memory behavior unverified.

Diff review

The existing explicit-MSAA descriptor concern remains in the merge. dev_create_uav_x creates the companion host SRV using the normalized multisampled view, then encodes the console descriptor from the original UAV-derived type with sample count 1. The passing debug test validates descriptor creation. It does not sample the companion through the translated shader's descriptor.

Not tested

Remaining workspace tests after the aborts, retail performance, and translated-shader reads through an explicit MSAA companion descriptor.

AI use

Codex (GPT-6) merged and built the PR, ran the tests, compared the results with main, reviewed the diff, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7353822527 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2511#issuecomment-7353822527). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T17:58:26Z. --- merge-check base: 817eb1fc9fb0763008ae5d8de1f7f586f442b51d head: ba93ea4418e3b8440fc563ad3b270e4f328cd166 verdict: not yet: the explicit MSAA companion view and console descriptor can disagree, and the workspace and retail smoke runs ended early. **Windows / AMD RDNA4 (native D3D12) — null UAV and MSAA companion SRV checks on `ba93ea4`** Clean merge onto `main` at `817eb1f` (merge commit `4f603175ddf94c1ddc883af3802cdf8438f74658`). `git diff --check` was clean. **Setup** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 - Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching `d3d12SDKLayers.dll`, DXC 1.9.2609.5 **Tested** `cargo build --workspace` passed. `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command. | Build | Passed | Failed | Ignored | `SKIPPED` notices | |---|---:|---:|---:|---:| | `main` | 340 | 3 | 23 | 0 | | Merged PR | 340 | 3 | 23 | 0 | Counts are partial because two test processes aborted on each build. - **Tests that failed on the PR and passed on `main`** — none observed in the comparable results. - **Tests added by the PR** — `uav_companion_srv_msaa_typeless_and_null_uav_dimensions` and `gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer` each passed in isolation with `--exact --test-threads=1 --show-output --nocapture`. Neither emitted a skip notice. The debug test used the default D3D12 device on the Radeon-only hardware setup and asserted no validation errors for those descriptor creation calls. - **Debug-layer coverage** — both debug-layer E2E tests, including DRED, and `uploads_start_from_each_subresources_state` passed. <details><summary>Shared failures and process aborts</summary> - `fuzz_validate_and_gpu_1`, `fuzz_validate_and_gpu_3`, and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` reported failures on both builds. - The library and `gpu_compute_e2e` test processes exited with `0xc0000409` on both builds. </details> **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>` with `XCL_UMA_DRIVER=mixed` for title hash `2c508222`. | Build | Exit | Frames logged | Device removals logged | Peak commit | |---|---|---|---:|---:| | `main` | `0xc0000409` | None | 0 | 1321 MB | | Merged PR, first attempt | `0xc0000409` | None | 0 | 5576 MB | | Merged PR, repeat from fresh data root | `0xc0000409` | None | 0 | 1321 MB | The first run's higher startup commit did not reproduce. These exits leave frame and steady-state memory behavior unverified. **Diff review** The existing explicit-MSAA descriptor concern remains in the merge. `dev_create_uav_x` creates the companion host SRV using the normalized multisampled view, then encodes the console descriptor from the original UAV-derived type with sample count 1. The passing debug test validates descriptor creation. It does not sample the companion through the translated shader's descriptor. **Not tested** Remaining workspace tests after the aborts, retail performance, and translated-shader reads through an explicit MSAA companion descriptor. **AI use** Codex (GPT-6) merged and built the PR, ran the tests, compared the results with `main`, reviewed the diff, and drafted this report.
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/2511:upstream-pr/2511'
git switch 'upstream-pr/2511'

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/2511'
git switch 'upstream-pr/2511'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2511'
git switch 'upstream-pr/2511'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2511'
git switch 'main'
git merge --squash 'upstream-pr/2511'
git switch 'main'
git merge --ff-only 'upstream-pr/2511'
git switch 'main'
git merge 'upstream-pr/2511'
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!2501
No description provided.