D3D12.X: fix null UAV fallback and MSAA/typeless companion SRVs #2501
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2511"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_xand invalid MSAA /*_TYPELESScompanion SRV descriptors inuav_companion_srv, preventingDXGI_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: reusenull_uav_desc(desc.as_ref(), Some(&rd))instead ofD3D12_UNORDERED_ACCESS_VIEW_DESC { ..Default::default() }whenpc_typed_uav_supportedreturns false, avoiding zeroArraySize/WSizeonTexture1DArray,Texture2DArray, andTexture3Dnull UAV fallbacks.null_uav_desc: ignoreViewDimension == UNKNOWN (0)so it falls back tord, and map MSAA 2DArray (7) toTexture2DArraywithArraySize = 1.uav_companion_srv+concrete_srv_format: accept MSAA dimensions (6/7) fromresource_dim_to_viewwhendesc == None, emitD3D12_SRV_DIMENSION_TEXTURE2DMS/D3D12_SRV_DIMENSION_TEXTURE2DMSARRAYwhenrd.SampleDesc.Count > 1(preventingCREATESHADERRESOURCEVIEW_INVALIDDESCandID3D12Device::RemoveDevice), and normalize any remaining*_TYPELESSor depth-only format to a concrete same-family SRV format (preventingCREATESHADERRESOURCEVIEW_INVALIDFORMAT).uav_companion_srv_tests: added unit testuav_companion_srv_msaa_typeless_and_null_uav_dimensionsand D3D12 debug-layer testgpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11, release build.uav_companion_srv_msaa_typeless_and_null_uav_dimensionsfailed (MSAA 2D default companion SRVreturnedNone).gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layerfailed underD3D12SDKLayers.dllwithID3D12Device::CreateShaderResourceView: The base resource was created as a multisample resource. You must specify D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY or D3D12_SRV_DIMENSION_TEXTURE2DMS.followed byID3D12Device::RemoveDevice(DXGI_ERROR_INVALID_CALL).ba93ea4):cargo test --release -p xcl --lib hle::d3d12x::real::uav_companion_srv_tests:: -- --test-threads=1 --nocaptureon RTX 3060: 4 passed, 0 failed, 0 skipped (0 D3D12 debug-layer errors).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.SKIPPEDlines (26): 21no wave64(RTX 3060 is 32-lane), 3 per-lane refused f16/f32 forms (#1426), 1pso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode required), 1heap_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):this PR (
ba93ea4):Not tested
AI use
real.rsnull 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.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_dimensionsand helpers): 4 passed. Thegpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layere2e entry ran to completion (ok) inside the suite run, no SKIPPED lines in this log, andgpu_uav_companion_srv_and_null_image_viewsis ok as well.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!
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
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 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused 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.hle::d3d12x::real::uav_companion_srv_tests::uav_companion_srv_msaa_typeless_and_null_uav_dimensionsandgpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
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_layershows as passed with noSKIPPEDline in a normal test run, so it is easy to count it as coverage when it tested nothing.Head
ba93ea4applied onmain6d12f58, RX 9070 XT, Windows 11 Pro 26200, nod3d12SDKLayers.dllinstalled:cargo test -p xcl --lib -- gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layer --nocaptureprintsSKIPPED ...: no D3D12 debug layer (...)and then... ok.--nocapture(and the whole-suite runs CONTRIBUTING.md asks for) prints only... ok, with noSKIPPEDline.The cause is the forwarding loop in the parent test:
libtest captures
eprintln!output of a passing test, so the child'sSKIPPEDline is dropped.runner::skip_testwrites withwriteln!(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: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.
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_xstill 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_deschelper 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 ofba93ea4418e3b8440fc563ad3b270e4f328cd166. No GPU run. AI-assisted review with Codex.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
experimental-11.0-20261112, vkd3d-proton masterec207194with a local patch dropping thelpVtblchecks ind3d12_command_allocator_from_iface/d3d12_command_list_from_iface, DXC1.9.2609.5, Rust 1.96.0,x86_64-pc-windows-gnumain83b00818, test commit44f6b2fcTests (debug,
--test-threads=1)hle::d3d12x::real::: 65 passed, 0 failed (main: 63 passed, 0 failed).uav_companion_srv_msaa_typeless_and_null_uav_dimensionsruns;gpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layerreturns early here because vkd3d-proton has no D3D12 debug layer (0x887A002D), so its checks did not run (withXCL_REQUIRE_GPU=wave64it fails for that reason).cargo test --workspace --no-fail-fast -- --test-threads=4, lib binary: 1322 passed, 9 failed, 27 ignored (mainthe same run: 1320 passed, 9 failed, 27 ignored). The failures are the same asmain'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,Apressed every 10 s)main, 4 runs: all clean, 1,892–2,122. This title never removed the device here onmaineither, so the run does not show the fix, only that nothing broke.Not tested
AI use
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-28T23:18:05Z.
merge-check
base:
5f0bfdbc12head:
ba93ea4418merge: clean (trial merge b836d310468e0dad0ce020be428fa94ebb34c95c, local, not pushed;
git diff --checkclean)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_layerunder the D3D12 debug layer. A first run with the Windows SDK's DXC 1.7 also failedgpu::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_descignores ViewDimension 0 and maps 7 to a Texture2DArray null UAV; the unsupported-typed-UAV fallback now usesnull_uav_desc, so null Texture1DArray / Texture2DArray / Texture3D UAVs get ArraySize / WSize 1 instead of 0; MSAA companion SRVs become TEXTURE2DMS / TEXTURE2DMSARRAY;concrete_srv_formatafterpc_srv). Notes, none blocking: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.concrete_srv_formatpicks 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):
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.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).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.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:26:24Z.
merge-check claim
head:
ba93ea4418Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:11:38Z.
merge-check
base:
851bf7f9head:
ba93ea4418merge: 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).
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 selectsTEXTURE2DMSorTEXTURE2DMSARRAY, but the final T# is still built from the original UAV shape withLAST_LEVEL=0. The existingsrv_tsharp_from_deschelper uses the resolved SRV and the resource's sample count.Candidate descriptor diff
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 capturedSKIPPEDfix 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.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-12-01T05:54:35Z.
merge-check
base:
d0832e614fhead:
ba93ea4418merge: 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_texturesgave 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--nocaptureand printed no SKIPPED line, sogpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layerreally ran under the debug layer. Its child makes its device withcreate_device(None), though, which is the default adapter (the RTX here) even withXCL_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_formatis a sound map. I agree with throny's open point, and it is still in the merged code. Indev_create_uav_x(mergedreal.rs~3811-3845), the console T# is built from the title's UAV view dimension:view_shape(..., dim = desc.ViewDimension, ...), thenxcl_image_for_view(..., ty, ...). A plain 2D (4) or 2D-array (5) UAV of a multisampled resource therefore gets aD2/D2ArrayT#, with LAST_LEVEL from mips rather thanlog2(samples). The same slot's PC companion SRV (uav_companion_srv,msaaat ~3644) is nowTEXTURE2DMS/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_viewgives 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 whenmsaais true would close this. throny's second point also holds but is minor: the parent test forwards the child's SKIPPED lines witheprintln!, 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 capturehardware / 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.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-12-01T06:14:32Z.
Follow-up to my candidate correction, tested against PR head
ba93ea4merged locally onto currentmain(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, itsLAST_LEVELis 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=1passed 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 withXCL_ADAPTER=warp; the debug-layer child explicitly selected the DXGI WARP adapter in that run. SettingXCL_ADAPTER=warpalone does not redirect this test's directcreate_device(None)call, so the test change below makes that selection explicit.Tested candidate correction and regression
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.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:13:29Z.
Triage (#1607) – head
ba93ea4No 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) changesconsole_list.rsonly. #1914 (merged) added the companion SRVs this fixes.No problems found in the diff. Note that
concrete_srv_formatpicks 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.
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_descdimension/array-size fix (real.rs:2117,:2427-2469),uav_companion_srvMSAA routing (real.rs:2569-2629), andconcrete_srv_formatmapping (real.rs:2474-2501,:2646) are clean and well-scoped. Two open items remain onba93ea441that are worth fixing before merge:dev_create_uav_xstill 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):descwithTEXTURE2D=4orTEXTURE2DARRAY=5on aSampleDesc.Count > 1resource):uav_companion_srvpublishes aTEXTURE2DMS/TEXTURE2DMSARRAYcompanion SRV (real.rs:2569,:2601-2606,:2622-2629), butdev_create_uav_xkeeps the raw UAVdim(4or5,real.rs:2725-2735) when callingview_shape(real.rs:2739), so the console T# written atreal.rs:2754carries a non-MSAAImageType::D2/D2Arraytype while the PC descriptor atslot.indexis MSAA.desc == NULL): line2737getsdim = resource_dim_to_view(&rd)(6/7), sotyisD2Msaa/D2MsaaArray, but line2754callsxcl_image_for_view(slot.index, fmt, ty, w, h, d, 1)with hardcodedmips = 1(desc.rs:639,:644), encodingLAST_LEVEL = 0(t[3][19:16]) instead oflog2(SampleDesc.Count)(2for 4× MSAA).Building the T# with
srv_tsharp_from_desc(slot.index, &rd, Some(&srv))(real.rs:1203-1231, which setsLAST_LEVEL = log2(SampleDesc.Count)andMAX_MIP = 0viaview_shape_descatreal.rs:1185-1186) whenever a non-null MSAA companion SRV is created fixes both explicit and default forms.Parent test captures child
SKIPPEDlines 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_layerforwards childSKIPPEDlines viaeprintln!("{line}")(real.rs:9060), whichlibtestcaptures and hides on a passing test unless--nocaptureis passed. Usingwriteln!(std::io::stderr(), "{line}")(matchingcrates/xcl/src/gpu/recomp/runner.rs:634) ensures skips are reported visibly in normal test runs. (Minor: the child callsagility::create_device(None, ...)atreal.rs:9085, so it always opens the default adapter rather than honoringXCL_ADAPTER.)AI use: Antigravity (Gemini 4 Neon) audited the full diff against
mainand drafted this review.Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T17:58:26Z.
merge-check
base:
817eb1fc9fhead:
ba93ea4418verdict: 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
ba93ea4Clean merge onto
mainat817eb1f(merge commit4f603175ddf94c1ddc883af3802cdf8438f74658).git diff --checkwas clean.Setup
d3d12SDKLayers.dll, DXC 1.9.2609.5Tested
cargo build --workspacepassed.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-outputexited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command.SKIPPEDnoticesmainCounts are partial because two test processes aborted on each build.
main— none observed in the comparable results.uav_companion_srv_msaa_typeless_and_null_uav_dimensionsandgpu_uav_null_fallback_and_msaa_typeless_companion_srv_debug_layereach 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.uploads_start_from_each_subresources_statepassed.Shared failures and process aborts
fuzz_validate_and_gpu_1,fuzz_validate_and_gpu_3, andtwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsreported failures on both builds.gpu_compute_e2etest processes exited with0xc0000409on both builds.Retail smoke
Ran
scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>withXCL_UMA_DRIVER=mixedfor title hash2c508222.main0xc00004090xc00004090xc0000409The 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_xcreates 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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.