Skip to content

Runtime: D24_UNORM_S8_UINT byte-exact on GPUs without D24 (AMD), and D24 clears quantised on every GPU - #737

Merged
ItsNotRexed merged 15 commits into
ItsNotRexed:mainfrom
AlxcBTW:d24-on-d32
Nov 22, 2026
Merged

ItsNotRexed merged 15 commits into
ItsNotRexed:mainfrom
AlxcBTW:d24-on-d32

Conversation

@AlxcBTW

@AlxcBTW AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

What and why

Claimed in #374, as a finding from the D3D-46 copy comparison. On GPUs without a D24 depth format the layer stores D24_UNORM_S8_UINT as D32_SFLOAT_S8_UINT. That covers AMD in general: the Radeon 880M on the Windows driver, and RADV. Nothing converted between the two formats:

  • footprint uploads and readbacks copied the raw 24-bit words as if they were floats;
  • clears wrote the float value without quantising it.

Copies between two textures were fine, because they only move bits. Most testers here use NVIDIA, which has native D24, so this didn't show up.

Copies. A compute pass (runtime/src/depth24_convert.comp, SPIR-V embedded and spirv-val clean) converts the depth plane of footprint copies through a scratch buffer. The stencil plane is a separate plane and is copied as before.

  • Upload: a 24-bit word d becomes the nearest float to d/16777215, computed in integer arithmetic.
  • Readback: the float becomes roundEven(fl32(f·16777215)), clamped, with NaN giving 0 and the top byte written as 0.
  • Splitting: a copy larger than maxStorageBufferRange is split into several dispatches.
  • Predication: conditional rendering is ended around the dispatch, because the layer's copies are unpredicated. Without this, a false SetPredication would skip the conversion but not the copy.

Clears. Depth clears of any D24-family texture, native or stored as D32, clear with the float of the quantised value. That value is exactly representable in 24 bits, so no driver tie rounding remains, and NVIDIA's native D24 now matches WARP and AMD as well.

Rounding. D3D11.3 §3.2.3.6 defines FLOAT→UNORM as a multiply by 2ⁿ−1, add 0.5 and truncate, with a 0.6 ULP tolerance. Read literally, that rounds ties up. WARP and AMD's D3D12 driver round the float product to nearest even instead, which is within the tolerance. The layer follows WARP and AMD. NVIDIA's D3D12 driver breaks some ties the other way, which the test logs as a host quirk. This is documented in depth24.h and docs/d3d12_vulkan.md.

Known gaps (documented):

  • SRVs of R24_UNORM_X8_TYPELESS and X24_TYPELESS_G8_UINT are an empty descriptor. The depth view has no T# mapping and stencil-plane views are refused, which is true for any depth format.
  • A rasteriser depth test or write on D32 can differ from D24 at the 24-bit step.

Merge note for #521: its D16 clear line and this PR's clear line are the same line in vulkan_replay.h. Whichever lands second should put the p.binding.depth24 ? branch ahead of the D16_UNORM branch.

Tested

AMD Radeon 880M (AMD 26.11.2) and NVIDIA RTX 5070 Laptop (617.42), Windows 11, MSVC 17.14, Vulkan SDK 1.4.363.0:

Vulkan layer host WARP host Radeon host NVIDIA
Radeon 880M (D32S8 fallback) pass pass pass (NVIDIA host ties logged)
RTX 5070 (native D24) pass pass pass
  • d3d12_vulkan_device_test exits 0 in all six combinations, with 0 VUIDs under LEONIDA_VK_VALIDATION=1. It compares:
    • the D24S8 copy row, with upload, readback and copies (72 regions);
    • 5215 clear values, both whole-view and per rectangle, with stencil;
    • an R24G8_TYPELESS resource with a typed D24 DSV (200 values);
    • an upload and readback under a predicate that skips copies. Without the predication fix, 715 bytes differ.
  • depth24_convert_test passes on both GPUs (it is also added to CI). It checks:
    • all 2²⁴ words to float and back;
    • 2²⁴ float bit patterns, including NaN, infinities, denormals and ties, against the reference;
    • a copy split by a 1 MiB range into 65 dispatches, and a pitched copy at an offset.
  • ctest: 29/29 on each GPU.
  • With Runtime: clears match WARP on every format class: tie rounding, and the SNORM/SINT/R8/R16 formats (D3D-45) #521 merged in: d3d12_clear_formats_test on the 880M gives 178 matched and 0 differ. Before this change it had 4 D24 differences.

An independent review re-derived the conversion math (every d round-trips, including near 1.0). It checked that the SPIR-V is byte-identical to a fresh glslc build, that barriers and descriptor lifetime are correct, and that the queue family supports compute. Its findings are fixed: predication, large copies, a leak on a failure path, CI, typeless coverage and doc nits.

AI-assisted (Claude Code).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

🤖 Generated with Claude Code

AlxcBTW and others added 11 commits November 22, 2026 02:38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layer stores D24 as D32_SFLOAT_S8_UINT where the GPU has no D24 (the
Radeon 880M, AMD generally). Footprint copies of the depth plane now convert
through a compute pass: an upload turns the 24-bit words into the nearest
floats of d / 16777215, a readback quantises floats back (float multiply by
16777215, round to nearest even, as WARP and AMD's D3D12 driver do) and writes
0 in the unspecified top byte. Clears store the float of the quantised value,
so a texture reads back as D3D's quantisation of the clear value.

- src/depth24.h, vulkan_depth24.h, depth24_convert.comp (+ compiled SPIR-V):
  reference conversion, the converter (pipeline, scratch, descriptors freed
  once the submission completes) and the shader.
- vulkan_replay.h: depth24_as_float binding flag, convert jobs prepared with the
  list and run around the copy, depth clear value.
- depth24_convert_test: all 16777216 words to float and back, 16777216 float
  patterns against the reference, a pitched copy; d3d12_depth24_compare.h:
  5215 clear values (whole-view and rectangle) against the host.
- d3d12_copy_compare.h: the D24 case now compares upload and readback with the
  host instead of only the bit-preserving copies.

Depends on ItsNotRexed#610.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A dispatch honours conditional rendering and the layer's copies do not, so a
  SetPredication that skips copies also skipped the D24 conversion while the
  copy ran. Conditional rendering is ended around the dispatch and begun
  again; a test runs an upload and readback under a skipping predicate and
  compares with the host's unpredicated run (it fails without the fix).
- A copy larger than maxStorageBufferRange (queried; 128 MiB assumed if not)
  is split into dispatches by slices, or by rows of one slice; the descriptors
  bind 256-byte-aligned windows of both buffers. depth24_convert_test splits
  the 4096x4096 copy with a 1 MiB range and a pitched one with a 1 KiB range.
- make_pipeline destroys the layouts it made when a later step fails.
- depth24_convert_test is in the CI tool list; the docs say which GPU each test
  exercises.
- R24G8_TYPELESS with a typed D24 DSV is compared with the host. SRVs of
  R24_UNORM_X8_TYPELESS and X24_TYPELESS_G8_UINT are an empty slot in the
  layer (no format mapping; stencil-plane views refused): reported by the
  test and documented as a known gap.
- depth24.h: the D3D11.3 spec's FLOAT -> UNORM wording (3.2.3.6, 3.2.2) next to
  what WARP and AMD were measured to do; "159" is 5215.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n now has

ItsNotRexed#562/ItsNotRexed#587 landed the same R9G9B9E5_SHAREDEXP and B5G6R5_UNORM mappings this
branch adds. The textual merge was clean but left duplicate case labels
(MSVC C2196) in texture_format and the block-size table; keep one of each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
 into HEAD

# Conflicts:
#	docs/d3d12_vulkan.md
#	runtime/shims/d3d12_vulkan_device.cpp
# Conflicts:
#	runtime/src/vulkan_replay.h
…oved it here)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A depth clear of any D24 texture, native D24 or stored as D32, now clears with
  depth24_to_float(depth24_quantize(v)), an exact 24-bit value, so no driver's
  tie rounding is left and NVIDIA's native D24 matches WARP and AMD.
- d3d12_depth24_compare.h checks the layer's clears against the reference
  (depth24_quantize, stencil value) and fails on a difference; the host is
  compared byte for byte only when it agrees with the reference, otherwise
  the difference is logged as a host quirk (NVIDIA's D3D12 rounds some ties
  the other way: 478 of 5215 values).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…solve comparison)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ismailchaka1

Copy link
Copy Markdown
Contributor

Tested 24c6e9a on an NVIDIA GeForce RTX 4070 SUPER, driver 32.0.16.1088, Windows 11, MSVC 2022 (Ninja, RelWithDebInfo), LEONIDA_VK_VALIDATION=1: pass.

PR head as-is, no game files. AI-assisted.

@73N1X

73N1X commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Independent AMD RDNA1 validation of exact head 24c6e9af4524d881e952cf33e7c16114d6db676f on Radeon RX 5700 XT, driver 32.0.21045.5002, Windows build 26200, MSVC 19.44, RelWithDebInfo. Vulkan validation and synchronization validation enabled; synthetic fixtures only, no game data.

Conversion test passes: full runtime build succeeds, and depth24_convert_test exits 0 with no validation errors. It checks all 16,777,216 D24 words against the float reference, the complete round trip, 16,777,216 float patterns, and the split/pitched-offset controls.

The unmodified complete device test does not pass here. With LEONIDA_HOST_ADAPTER=warp, the copy comparison reports 2/69 failing cases and aborts at copy_mismatches <= 0 before reaching the new D24 clear comparison. The differences include stencil-plane CopyResource results for D24 and D32S8 (four regions per format; first differences at row 0 col 16 for mip 0 and col 8 for mip 1). Synchronization validation also reports WRITE_AFTER_WRITE hazards in existing image copies.

Baseline control: the original device test built against the exact base 67204bf8c0471335d9046890288b33e8d5e2875b also reports 2/69 copy failures and the same classes of WRITE_AFTER_WRITE hazards. Its D24 fallback case uses the older bit-preserving comparison, whereas this PR compares D24 against the host, so the D24 oracle is different; this is not proof that every failing byte is identical across the two versions. The D32S8 stencil mismatch signature is unchanged. Both PR heads #737 and #767 give CTest 28/29 here, failing this device test.

To reach the new checks without suppressing the earlier failure, I made a temporary test-only probe: moved the existing compare_depth24 call before compare_copies, leaving the comparisons and failure assertions enabled. Production source was unchanged. With both LEONIDA_HOST_ADAPTER=warp and AMD:

  • 5,215 whole-view/rectangle clear values match the host (322 regions).
  • R24G8_TYPELESS with a D24 DSV: 200 values match.
  • Upload/readback under a skipping predicate match the host's unpredicated run.
  • A counter immediately around compare_depth24 reports zero new validation errors on the WARP run.

The probe still exits 1 at the subsequent copy comparison. I restored the checked-in test, rebuilt it, and reran CTest afterward. These results support the new D24 conversion/clear path on this AMD device; they are not a blanket full-suite pass. Optional descriptor sampling shader coverage was unavailable because glslangValidator is absent.

Separately, the red check in run 44976126347 fails building rpf9dump with CS1061 (ArchiveEntry.ResourceDrawableOffset, Program.cs lines 124/147), not in the D24 test. I inspected that failed log but did not independently reproduce or fix that C# build issue.

@AlxcBTW

AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Thanks to both of you. @73N1X, the RX 5700 XT run is especially useful.

  • This PR's paths pass on RDNA1: the D24 conversion and clear checks run cleanly on the RX 5700 XT with the probe reordering.
  • The 2/69 failures are on main too: the stencil-plane CopyResource mismatches for D24 and D32S8 also show up on main. Those comparisons came in with D3D-46, which is mine, so I'm looking into them.
  • The WRITE_AFTER_WRITE hazards: synchronization validation can explain mismatches that only show up on some GPUs. I'll reproduce it with sync validation on the Radeon 880M and the RTX 5070, find the missing barrier, and open a fix. I'll ping you so you can rerun it on the 5700 XT.

AI-assisted (Claude Code).

image_descriptor named the depth-plane SRV's format from the stored Vulkan
format, so a D24 texture the layer keeps as D32_SFLOAT_S8_UINT (no D24 on the
GPU, the Radeon 880M) got the X24_8_32_FLOAT code instead of the 8_24_UNORM the
console's own descriptor has, and d3d12_descriptor_test failed there. The T#
now carries the format of the texture as created; bind_image views the image
as stored (its own format, depth aspect), since a D24 view of a D32 image is
not valid. A depth-plane view of a texture of the other depth family is
refused.

The D24 comparison test checks the T# codes of the depth and stencil plane
SRVs instead of printing a known gap (depth-plane and stencil-plane views
exist on main now); the docs say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlxcBTW

AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

I've pushed f9addf5. It fixes d3d12_descriptor_test failing on GPUs without D24, which also happens on main (line 548, from #698).

Root cause: the layer stores D24 as D32_SFLOAT_S8_UINT on those GPUs, and image_descriptor took the T# format code for a depth-plane SRV from that stored format. The descriptor therefore said X24_8_32_FLOAT (146), not the 8_24_UNORM (141) the console writes for a D24 texture.

The fix:

  • The T# now follows the texture as the application created it, so a D24 depth-plane SRV is always 8_24_UNORM, and the stencil plane stays 8_UINT.
  • bind_image views the image in its stored format with the depth aspect.
  • A depth-plane view of the other depth family is refused.

@ismailchaka1, your check at line 548 was right and is unchanged. The bug was in the layer's path, and it only shows on hardware without D24.

Since #698 landed, both plane SRVs write descriptors, so my earlier "known gap" text was out of date. d3d12_depth24_compare.h now decodes both plane SRVs of an R24G8_TYPELESS texture and requires 8_24_UNORM and 8_UINT. The docs are updated to match.

Tested on the Radeon 880M and the RTX 5070:

  • ctest passes 29/29 on each GPU.
  • d3d12_descriptor_test exits 0 on both.
  • d3d12_vulkan_device_test exits 0 against the WARP, Radeon and NVIDIA hosts.
  • There are 0 VUID lines.

AI-assisted (Claude Code).

@AlxcBTW

AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@73N1X Here's what I found with sync validation on the Radeon 880M and the RTX 5070, using validate_sync = true and duplicate_message_limit raised.

The WRITE_AFTER_WRITE hazards reproduce here too: 108 per d3d12_vulkan_device_test run, in every Vulkan × host combination. They all come from the BC array cases (36×20, 3 layers, 6 mips), on copies into different, non-overlapping subresources at mips 2–4. D3D12 needs no barrier between those, and the layer's transition barriers cover every subresource and aspect.

I think it's a validation-layer false positive. A plain-Vulkan program with no Leonida code shows the same report:

  • It uploads a BC1 36×20×3 texture with 6 mips, issues a full barrier, then one vkCmdCopyImage into mip 2 of each layer. That reports WRITE_AFTER_WRITE on layers 1 and 2.
  • At 40×24 there is no hazard.
  • With 64×32 BC array cases in the harness, the count drops to 0.

So it seems to be the validation layer's address model for partial-block mips, not a missing barrier. No other D3D12 test reports a hazard on either GPU: descriptor, method_variants, sampler2, clear, uav_clear and vk_command_replay all give 0.

The stencil CopyResource difference (2/69) doesn't reproduce here. Both GPUs give 0 of 69 against the WARP, Radeon and NVIDIA hosts. Your offsets point to the R case (CopyResource, one vkCmdCopyImage with layerCount 2 and depth plus stencil regions), stencil plane, mips 0 and 1. Only the trailing partial chunk differs: columns 16–19 of 20 and 8–9 of 10. Mip 2 (5×3) and the single-subresource copies are fine. That pattern looks like the RDNA1 driver's stencil copy path, or HTILE metadata on partial tiles after the zero-init clear, rather than ordering. I haven't added a workaround without evidence.

Could you post the full stderr of a failing run, every differing region, and which host adapter you used (WARP or the 5700 XT)? With that, I can narrow it down. For example, I could split CopyResource per layer or per aspect behind an env switch for you to try.

AI-assisted (Claude Code).

# Conflicts:
#	runtime/src/vulkan_backend.h
@73N1X

73N1X commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

@AlxcBTW Follow-up to your request: reproduced on the newer exact head 0251789a8b17577b8e7f55ece7c5435a468c8a8e (which includes f9addf5), without merging any local changes.

Environment: Radeon RX 5700 XT (Vulkan device), Windows build 26200, driver 32.0.21045.5002, MSVC 19.44, RelWithDebInfo. Synthetic fixtures only, no game files. LEONIDA_VK_VALIDATION=1, VK_VALIDATION_VALIDATE_SYNC=1, VK_LAYER_PATH=D:/Leonida/runtime/build-deps/validation/Bin, VK_LOADER_LAYERS_DISABLE=*bandicam*. The environment disables the third-party Bandicam layer; the Khronos validation layer remains enabled. I did not raise the validation layer's duplicate-message limit in these runs.

Both hosts reproduce it:

  • LEONIDA_HOST_ADAPTER=warp: the executable identifies Microsoft Basic Render Driver; exit 1, 2/69 copy cases differ.
  • LEONIDA_HOST_ADAPTER=AMD: the executable identifies AMD Radeon RX 5700 XT; exit 1, 2/69 copy cases differ.

All eight reported stencil regions, their byte counts, first offsets and first values are identical between the two host selections. They are listed below. The checked-in diagnostic only prints the first three differing regions per format. To obtain the fourth, I made a separate diagnostic-only run with bad_regions++ < 3 raised to < 1000000; no comparison, copy, assertion or production code was changed. Both hosts still give exit 1 and 2/69. I restored that line and rebuilt the original executable afterward; the worktree is clean.

Every differing region (both hosts):

copy case D24_UNORM_S8_UINT: R (CopyResource) sub 6 (mip 0 slice 0 plane 1): 48 bytes differ, first at row 0 col 16: ours 00 host 1a
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 7 (mip 1 slice 0 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 25
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 9 (mip 0 slice 1 plane 1): 48 bytes differ, first at row 0 col 16: ours 00 host bf
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 10 (mip 1 slice 1 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 22
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 6 (mip 0 slice 0 plane 1): 45 bytes differ, first at row 0 col 16: ours 00 host 1a
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 7 (mip 1 slice 0 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 25
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 9 (mip 0 slice 1 plane 1): 47 bytes differ, first at row 0 col 16: ours 00 host 3f
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 10 (mip 1 slice 1 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 22

The complete stdout and stderr of each unmodified-head failing run follow, without assistant truncation. stdout/stderr were captured separately, so their cross-stream ordering is not preserved. Raw stderr includes expected invalid-copy rejection messages from the existing negative tests as well as the validation diagnostics.

WARP: complete stdout
device: AMD Radeon RX 5700 XT (validation on)
allocation info 256x256 full chain: alignment 65536, size ours 393216 host 393216
allocation info 16x16 small: alignment 4096, size ours 4096 host 4096
allocation info 64x64 BC1 small: alignment 4096, size ours 4096 host 4096
allocation info 64x64 depth: alignment 65536, size ours 131072 host 65536
allocation info 8x8 array of 6: alignment 65536, size ours 65536 host 65536
allocation info 32x32x8 volume: alignment 65536, size ours 65536 host 65536
allocation info 64x64 4x MSAA: alignment 4194304, size ours 4194304 host 4194304
allocation info 64x64 4x MSAA small: alignment 65536, size ours 196608 host 65536
allocation info 1024x1024 4x MSAA small: alignment 65536, size ours 17956864 host 16777216
allocation info 16x16 R32G32_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R32G32_SINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R32G32_TYPELESS: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16B16A16_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16B16A16_SINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R10G10B10A2_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16_TYPELESS: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16_SINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R8G8_TYPELESS: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R8G8_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R8G8_SINT: alignment 65536, size ours 65536 host 65536
copy comparison: host side is Microsoft Basic Render Driver
copy case R8_UNORM: matches the host (108 regions)
copy case R8G8_SNORM: matches the host (108 regions)
copy case R8G8B8A8_UNORM: matches the host (108 regions)
copy case R8G8B8A8_UNORM_SRGB: matches the host (108 regions)
copy case R8G8B8A8_TYPELESS: matches the host (108 regions)
copy case B8G8R8A8_UNORM: matches the host (108 regions)
copy case R16_UNORM: matches the host (108 regions)
copy case R16G16_FLOAT: matches the host (108 regions)
copy case R16G16B16A16_FLOAT: matches the host (108 regions)
copy case R32_UINT: matches the host (108 regions)
copy case R32G32_UINT: matches the host (108 regions)
copy case R32G32B32A32_FLOAT: matches the host (108 regions)
copy case R10G10B10A2_UNORM: matches the host (108 regions)
copy case R11G11B10_FLOAT: matches the host (108 regions)
copy case R9G9B9E5_SHAREDEXP: matches the host (108 regions)
copy case B5G6R5_UNORM: matches the host (108 regions)
copy case B5G5R5A1_UNORM: matches the host (108 regions)
copy case 3D R8G8B8A8_UNORM: matches the host (24 regions)
copy case 3D R32_FLOAT: matches the host (24 regions)
copy case single mip, single slice R8G8B8A8_UNORM: matches the host (6 regions)
copy case D16_UNORM: matches the host (36 regions)
copy case D32_FLOAT: matches the host (36 regions)
copy case BC1_UNORM: matches the host (108 regions)
copy case BC1_UNORM_SRGB: matches the host (108 regions)
copy case BC2_UNORM: matches the host (108 regions)
copy case BC3_UNORM: matches the host (108 regions)
copy case BC4_UNORM: matches the host (108 regions)
copy case BC4_SNORM: matches the host (108 regions)
copy case BC5_UNORM: matches the host (108 regions)
copy case BC5_SNORM: matches the host (108 regions)
copy case BC6H_UF16: matches the host (108 regions)
copy case BC6H_SF16: matches the host (108 regions)
copy case BC7_UNORM: matches the host (108 regions)
copy case BC7_UNORM_SRGB: matches the host (108 regions)
copy case 3D BC1_UNORM: matches the host (18 regions)
copy case BC7_UNORM, 4x4 (one block): matches the host (12 regions)
copy case buffers: matches the host (5 regions)
copy case RGBA8 mip 0 box 12x12 into mip 1: matches the host
copy case RGBA8 mip 1 into mip 0 at 8,8: matches the host
copy case RGBA8 mip 1 box 4..12 into mip 0: matches the host
copy case RGBA8 mip 0 box 8x8 into the 6x6 mip 2: refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 2 (6x6) into mip 0 at 4,4: matches the host
copy case RGBA8 mip 2 (6x6) into mip 1: matches the host
copy case RGBA8 mip 0 box 4x4 into the 3x3 mip 3: refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 0 box 16x16 into the 3x3 mip 3 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 0 box 16x16 into the 6x6 mip 2 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 1 into mip 0 at 16,16 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 12x12 into mip 1: matches the host
copy case BC mip 1 into mip 0 at 8,8: matches the host
copy case BC mip 1 box 4..12 into mip 0: matches the host
copy case BC mip 0 box 8x8 into the 6x6 mip 2: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 0 at 4,4: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 1: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 4x4 into the 3x3 mip 3: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 16x16 into the 3x3 mip 3 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 16x16 into the 6x6 mip 2 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 1 into mip 0 at 16,16 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 12x12 into mip 1: matches the host
copy case BC mip 1 into mip 0 at 8,8: matches the host
copy case BC mip 1 box 4..12 into mip 0: matches the host
copy case BC mip 0 box 8x8 into the 6x6 mip 2: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 0 at 4,4: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 1: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 4x4 into the 3x3 mip 3: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 16x16 into the 3x3 mip 3 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 16x16 into the 6x6 mip 2 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 1 into mip 0 at 16,16 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy comparison: 2 of 69 cases differ from the host

WARP: complete stderr
[rt] d3d12: QueryInterface: unknown IID {5f6e592d-d895-44c2-8e4a-88ad4926d323}
[rt] d3d12: QueryInterface: unknown IID {14eecffc-4df8-40f7-a118-5c816f45695e}
[rt] d3d12: QueryInterface: unknown IID {5af5c532-4c91-4cd0-b541-15a405395fc5}
[rt] d3d12_xs: device slot 0 (QueryInterface) first call
[rt] d3d12_xs: device slot 1 (AddRef) first call
[rt] d3d12_xs: device proxy 0000026A06A2D1F0 wraps PC device 0000026A093BB380 (80 PC vtable slots)
[rt] d3d12_xs: device slot 2 (Release) first call
[rt] d3d12: QueryInterface: unknown IID {5af5c532-4c91-4cd0-b541-15a405395fc5}
[rt] d3d12_xs: device slot 7 (forwarded) first call
[rt] d3d12_xs: device slot 27 (CreateCommittedResource (PC slot 27)) first call
[rt] d3d12_xs: device slot 25 (GetResourceAllocationInfo) first call
[rt] d3d12_xs: device slot 13 (forwarded) first call
[rt] d3d12: CheckFeatureSupport feature 2
[rt] d3d12: CheckFeatureSupport feature 1
[rt] d3d12: CheckFeatureSupport feature 0
[rt] d3d12: CheckFeatureSupport feature 6
[rt] d3d12: CheckFeatureSupport feature 3
[rt] d3d12: CheckFeatureSupport feature 4
[rt] d3d12: QueryInterface: unknown IID {5f6e592d-d895-44c2-8e4a-88ad4926d323}
[rt] d3d12: QueryInterface: unknown IID {14eecffc-4df8-40f7-a118-5c816f45695e}
[rt] d3d12: QueryInterface: unknown IID {5af5c532-4c91-4cd0-b541-15a405395fc5}
[rt] d3d12_xs: device proxy 0000026A069B7480 wraps PC device 0000026A069AF440 (80 PC vtable slots)
[rt] d3d12_xs: device slot 38 (forwarded) first call
[rt] d3d12: CheckFeatureSupport feature 7
[rt] d3d12: CheckFeatureSupport feature 12
[rt] d3d12_xs: device slot 56 (forwarded) first call
[rt] d3d12_xs: device slot 68 (forwarded) first call
[rt] d3d12_xs: device slot 8 (forwarded) first call
[rt] d3d12_xs: device slot 9 (CreateCommandAllocator (PC slot 9)) first call
[rt] d3d12_xs: device slot 12 (forwarded) first call
[rt] d3d12_xs: device slot 36 (forwarded) first call
[rt] d3d12_xs: device slot 37 (forwarded) first call
[rt] d3d12: D24_UNORM_S8_UINT unavailable, using D32_SFLOAT_S8_UINT; format 45
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 6 (mip 0 slice 0 plane 1): 48 bytes differ, first at row 0 col 16: ours 00 host 1a
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 7 (mip 1 slice 0 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 25
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 9 (mip 0 slice 1 plane 1): 48 bytes differ, first at row 0 col 16: ours 00 host bf
copy case D24_UNORM_S8_UINT: 4 regions differ in all
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 6 (mip 0 slice 0 plane 1): 45 bytes differ, first at row 0 col 16: ours 00 host 1a
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 7 (mip 1 slice 0 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 25
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 9 (mip 0 slice 1 plane 1): 47 bytes differ, first at row 0 col 16: ours 00 host 3f
copy case D32_FLOAT_S8X24_UINT: 4 regions differ in all
validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x2080000000208, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 1, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyBufferToImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyBufferToImage writes to VkImage 0x20c000000020c, which was previously written by another vkCmdCopyBufferToImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 1, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 2, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 3, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x2080000000208, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 0, layerCount = 1}
}

validation: vkCmdCopyBufferToImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyBufferToImage writes to VkImage 0x20c000000020c, which was previously written by another vkCmdCopyBufferToImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 2, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 3, baseArrayLayer = 0, layerCount = 1}
}

validation: vkCmdCopyBufferToImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyBufferToImage writes to VkImage 0x20c000000020c, which was previously written by another vkCmdCopyBufferToImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 2, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 3, baseArrayLayer = 2, layerCount = 1}
}

validation: (Warning - This VUID has now been reported 10 times, which is the duplicate_message_limit value, this will be the last time reporting it).
vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x2190000000219, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 1, layerCount = 1}
}

[rt] d3d12: default-heap buffers are not zero-filled yet; dimension 1
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
line 1350: copy_mismatches <= 0

Native RX 5700 XT D3D12: complete stdout
device: AMD Radeon RX 5700 XT (validation on)
allocation info 256x256 full chain: alignment 65536, size ours 393216 host 393216
allocation info 16x16 small: alignment 4096, size ours 4096 host 4096
allocation info 64x64 BC1 small: alignment 4096, size ours 4096 host 4096
allocation info 64x64 depth: alignment 65536, size ours 131072 host 65536
allocation info 8x8 array of 6: alignment 65536, size ours 65536 host 65536
allocation info 32x32x8 volume: alignment 65536, size ours 65536 host 65536
allocation info 64x64 4x MSAA: alignment 4194304, size ours 4194304 host 4194304
allocation info 64x64 4x MSAA small: alignment 65536, size ours 196608 host 65536
allocation info 1024x1024 4x MSAA small: alignment 65536, size ours 17956864 host 17956864
allocation info 16x16 R32G32_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R32G32_SINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R32G32_TYPELESS: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16B16A16_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16B16A16_SINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R10G10B10A2_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16_TYPELESS: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R16G16_SINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R8G8_TYPELESS: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R8G8_UINT: alignment 65536, size ours 65536 host 65536
allocation info 16x16 R8G8_SINT: alignment 65536, size ours 65536 host 65536
copy comparison: host side is AMD Radeon RX 5700 XT
copy case R8_UNORM: matches the host (108 regions)
copy case R8G8_SNORM: matches the host (108 regions)
copy case R8G8B8A8_UNORM: matches the host (108 regions)
copy case R8G8B8A8_UNORM_SRGB: matches the host (108 regions)
copy case R8G8B8A8_TYPELESS: matches the host (108 regions)
copy case B8G8R8A8_UNORM: matches the host (108 regions)
copy case R16_UNORM: matches the host (108 regions)
copy case R16G16_FLOAT: matches the host (108 regions)
copy case R16G16B16A16_FLOAT: matches the host (108 regions)
copy case R32_UINT: matches the host (108 regions)
copy case R32G32_UINT: matches the host (108 regions)
copy case R32G32B32A32_FLOAT: matches the host (108 regions)
copy case R10G10B10A2_UNORM: matches the host (108 regions)
copy case R11G11B10_FLOAT: matches the host (108 regions)
copy case R9G9B9E5_SHAREDEXP: matches the host (108 regions)
copy case B5G6R5_UNORM: matches the host (108 regions)
copy case B5G5R5A1_UNORM: matches the host (108 regions)
copy case 3D R8G8B8A8_UNORM: matches the host (24 regions)
copy case 3D R32_FLOAT: matches the host (24 regions)
copy case single mip, single slice R8G8B8A8_UNORM: matches the host (6 regions)
copy case D16_UNORM: matches the host (36 regions)
copy case D32_FLOAT: matches the host (36 regions)
copy case BC1_UNORM: matches the host (108 regions)
copy case BC1_UNORM_SRGB: matches the host (108 regions)
copy case BC2_UNORM: matches the host (108 regions)
copy case BC3_UNORM: matches the host (108 regions)
copy case BC4_UNORM: matches the host (108 regions)
copy case BC4_SNORM: matches the host (108 regions)
copy case BC5_UNORM: matches the host (108 regions)
copy case BC5_SNORM: matches the host (108 regions)
copy case BC6H_UF16: matches the host (108 regions)
copy case BC6H_SF16: matches the host (108 regions)
copy case BC7_UNORM: matches the host (108 regions)
copy case BC7_UNORM_SRGB: matches the host (108 regions)
copy case 3D BC1_UNORM: matches the host (18 regions)
copy case BC7_UNORM, 4x4 (one block): matches the host (12 regions)
copy case buffers: matches the host (5 regions)
copy case RGBA8 mip 0 box 12x12 into mip 1: matches the host
copy case RGBA8 mip 1 into mip 0 at 8,8: matches the host
copy case RGBA8 mip 1 box 4..12 into mip 0: matches the host
copy case RGBA8 mip 0 box 8x8 into the 6x6 mip 2: refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 2 (6x6) into mip 0 at 4,4: matches the host
copy case RGBA8 mip 2 (6x6) into mip 1: matches the host
copy case RGBA8 mip 0 box 4x4 into the 3x3 mip 3: refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 0 box 16x16 into the 3x3 mip 3 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 0 box 16x16 into the 6x6 mip 2 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case RGBA8 mip 1 into mip 0 at 16,16 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 12x12 into mip 1: matches the host
copy case BC mip 1 into mip 0 at 8,8: matches the host
copy case BC mip 1 box 4..12 into mip 0: matches the host
copy case BC mip 0 box 8x8 into the 6x6 mip 2: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 0 at 4,4: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 1: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 4x4 into the 3x3 mip 3: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 16x16 into the 3x3 mip 3 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 16x16 into the 6x6 mip 2 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 1 into mip 0 at 16,16 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 12x12 into mip 1: matches the host
copy case BC mip 1 into mip 0 at 8,8: matches the host
copy case BC mip 1 box 4..12 into mip 0: matches the host
copy case BC mip 0 box 8x8 into the 6x6 mip 2: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 0 at 4,4: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 2 (6x6) into mip 1: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 4x4 into the 3x3 mip 3: known difference: the host copies whole blocks, the layer refuses it
copy case BC mip 0 box 16x16 into the 3x3 mip 3 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 0 box 16x16 into the 6x6 mip 2 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy case BC mip 1 into mip 0 at 16,16 (does not fit): refused by both (host: Close failed 0x80070057; layer: the layer refused the list (ReplayResult 5))
copy comparison: 2 of 69 cases differ from the host

Native RX 5700 XT D3D12: complete stderr
[rt] d3d12: QueryInterface: unknown IID {5f6e592d-d895-44c2-8e4a-88ad4926d323}
[rt] d3d12: QueryInterface: unknown IID {14eecffc-4df8-40f7-a118-5c816f45695e}
[rt] d3d12: QueryInterface: unknown IID {5af5c532-4c91-4cd0-b541-15a405395fc5}
[rt] d3d12_xs: device slot 0 (QueryInterface) first call
[rt] d3d12_xs: device slot 1 (AddRef) first call
[rt] d3d12_xs: device proxy 000001F0CC1EFAD0 wraps PC device 000001F089ECEB40 (80 PC vtable slots)
[rt] d3d12_xs: device slot 2 (Release) first call
[rt] d3d12: QueryInterface: unknown IID {5af5c532-4c91-4cd0-b541-15a405395fc5}
[rt] d3d12_xs: device slot 7 (forwarded) first call
[rt] d3d12_xs: device slot 27 (CreateCommittedResource (PC slot 27)) first call
[rt] d3d12_xs: device slot 25 (GetResourceAllocationInfo) first call
[rt] d3d12_xs: device slot 13 (forwarded) first call
[rt] d3d12: CheckFeatureSupport feature 2
[rt] d3d12: CheckFeatureSupport feature 1
[rt] d3d12: CheckFeatureSupport feature 0
[rt] d3d12: CheckFeatureSupport feature 6
[rt] d3d12: CheckFeatureSupport feature 3
[rt] d3d12: CheckFeatureSupport feature 4
[rt] d3d12: QueryInterface: unknown IID {5f6e592d-d895-44c2-8e4a-88ad4926d323}
[rt] d3d12: QueryInterface: unknown IID {14eecffc-4df8-40f7-a118-5c816f45695e}
[rt] d3d12: QueryInterface: unknown IID {5af5c532-4c91-4cd0-b541-15a405395fc5}
[rt] d3d12_xs: device proxy 000001F08A23A650 wraps PC device 000001F086A1E600 (80 PC vtable slots)
[rt] d3d12_xs: device slot 38 (forwarded) first call
[rt] d3d12: CheckFeatureSupport feature 7
[rt] d3d12: CheckFeatureSupport feature 12
[rt] d3d12_xs: device slot 56 (forwarded) first call
[rt] d3d12_xs: device slot 68 (forwarded) first call
[rt] d3d12_xs: device slot 8 (forwarded) first call
[rt] d3d12_xs: device slot 9 (CreateCommandAllocator (PC slot 9)) first call
[rt] d3d12_xs: device slot 12 (forwarded) first call
[rt] d3d12_xs: device slot 36 (forwarded) first call
[rt] d3d12_xs: device slot 37 (forwarded) first call
[rt] d3d12: D24_UNORM_S8_UINT unavailable, using D32_SFLOAT_S8_UINT; format 45
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 6 (mip 0 slice 0 plane 1): 48 bytes differ, first at row 0 col 16: ours 00 host 1a
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 7 (mip 1 slice 0 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 25
copy case D24_UNORM_S8_UINT: R (CopyResource) sub 9 (mip 0 slice 1 plane 1): 48 bytes differ, first at row 0 col 16: ours 00 host bf
copy case D24_UNORM_S8_UINT: 4 regions differ in all
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 6 (mip 0 slice 0 plane 1): 45 bytes differ, first at row 0 col 16: ours 00 host 1a
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 7 (mip 1 slice 0 plane 1): 12 bytes differ, first at row 0 col 8: ours 00 host 25
copy case D32_FLOAT_S8X24_UINT: R (CopyResource) sub 9 (mip 0 slice 1 plane 1): 47 bytes differ, first at row 0 col 16: ours 00 host 3f
copy case D32_FLOAT_S8X24_UINT: 4 regions differ in all
validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x2080000000208, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 1, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyBufferToImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyBufferToImage writes to VkImage 0x20c000000020c, which was previously written by another vkCmdCopyBufferToImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 1, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 2, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 3, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x2080000000208, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 0, layerCount = 1}
}

validation: vkCmdCopyBufferToImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyBufferToImage writes to VkImage 0x20c000000020c, which was previously written by another vkCmdCopyBufferToImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 4, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 2, layerCount = 1}
}

validation: vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x20a000000020a, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 2, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 3, baseArrayLayer = 0, layerCount = 1}
}

validation: vkCmdCopyBufferToImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyBufferToImage writes to VkImage 0x20c000000020c, which was previously written by another vkCmdCopyBufferToImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 2, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 3, baseArrayLayer = 2, layerCount = 1}
}

validation: (Warning - This VUID has now been reported 10 times, which is the duplicate_message_limit value, this will be the last time reporting it).
vkCmdCopyImage(): WRITE_AFTER_WRITE hazard detected. vkCmdCopyImage writes to VkImage 0x2190000000219, which was previously written by another vkCmdCopyImage command. 
No sufficient synchronization is present to ensure that a write (VK_ACCESS_2_TRANSFER_WRITE_BIT) at VK_PIPELINE_STAGE_2_COPY_BIT does not conflict with a prior write of the same type at the same stage.
Image copy region 0: {
  offset = {x = 0, y = 0, z = 0},
  extent = {width = 4, height = 5, depth = 1},
  subresource = {aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, mipLevel = 2, baseArrayLayer = 1, layerCount = 1}
}

[rt] d3d12: default-heap buffers are not zero-filled yet; dimension 1
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
[rt] d3d12: ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted
line 1350: copy_mismatches <= 0

Additional checks on this exact head: depth24_convert_test exits 0 (all 16,777,216 words/float patterns and the split/pitched controls), and d3d12_descriptor_test now exits 0 under validation. The descriptor sampling shader was unavailable because glslangValidator is absent; I am not claiming a sampling readback. The original device test still stops at copy_mismatches <= 0 before the D24 clear checks, so this rerun does not supersede the earlier reordered-probe result for those checks.

I can run a per-layer/per-aspect diagnostic switch on this RDNA1 device if you provide one. I have not assumed a driver bug or added a workaround.

@quackottu

Copy link
Copy Markdown
Contributor

Tested 0251789 on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass

Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.

@rasptum

rasptum commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 0251789 on NVIDIA GeForce RTX 3060, driver 596.36, Windows 10 Pro 19045 (native D24): the D24 work passes on a Windows 10 host, but d3d12_vulkan_device_test as a whole does not get that far here, for a reason that comes from main and not from this PR.

As pushed (0251789, which contains main 8df277f):

With that one EXPECT ignored in a local copy (nothing pushed), the device test runs to its last line and exits 0 without validation. The D24 lines against the Windows 10 host, with NVIDIA as the host adapter too:

  • copy case D24_UNORM_S8_UINT: matches the host (72 regions)
  • depth24 clears: 5215 values, whole-view and rectangle clears match the host (322 regions)
  • depth24 typeless: R24G8_TYPELESS with a D24 DSV, 200 values, match the host
  • depth24 predicated copies: upload and readback under a skipping predicate match the host's unpredicated run
  • the NVIDIA host tie quirk is logged as expected: 478 of 5215 clear values, and 21 of 200 for R24G8_TYPELESS (first value 2.98023259e-08).

With validation, that local run exits 1 on 10 WRITE_AFTER_WRITE synchronization reports and nothing else. That is the count already reported for main (#782), so I did not look further.

Earlier heads: 24c6e9a and f9addf5, each merged locally with #717's head, gave ctest 29/29 and the same D24 lines, with 0 validation messages (validation without the synchronization checks, which were not on that base yet).

Nothing in the D24 paths differed because of Windows 10. This GPU has native D24, so the D32S8 fallback itself was not exercised.

Not run: the llvm-mc based tests (not installed here). d3d12_clear_test (not in CTest) exits 1 on the tie-rounding byte that #521 covers, as on main. Build: MSVC 19.44, Windows SDK 10.0.26100, Vulkan SDK 1.4.363, Ninja, RelWithDebInfo. No game files. AI-assisted (Claude Code), run on my own machine.

AlxcBTW and others added 2 commits November 22, 2026 04:45
…(D3D-75)

Main's depth-plane SRV T# code follows the texture's backing format (X24_8_32_FLOAT
where D24 is stored as D32), so the override from f9addf5 is dropped and the
D24 comparison test expects the backing format's code. The family refusal and
bind_image are main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlxcBTW

AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

I've merged the current main in, at 55d02a5, and aligned this PR with #778 (@ismailchaka1, D3D-75).

#778 decided that the depth-plane T# of a D24 texture follows the backing format. Where the layer stores D24 as D32 that gives X24_8_32_FLOAT, and on a GPU with D24 it gives 8_24_UNORM. My earlier commit had made it always 8_24_UNORM, so I've removed that and image_descriptor/bind_image are back to main's code. #778's rule is also the plausible one for the console, since RDNA2 has no D24 either. d3d12_depth24_compare.h now decodes both plane SRVs and expects the backing format's code, with 8_UINT for the stencil plane. The docs say the same.

Tested on the Radeon 880M and the RTX 5070:

  • d3d12_descriptor_test passes on both, with 0 VUIDs under LEONIDA_VK_VALIDATION=1.
  • All D24 checks pass in all host combinations.
  • ctest passes 32/32 on the RTX 5070.

ctest gives 31/32 on the 880M. The one failure is not from this PR: plain main (4a36bb1) fails it as well, against every host. It's d3d12_vulkan_device_test's options_mismatches check, OPTIONS19.SupportedSampleCountsWithNoOutputs: ours 0xf not subset of host 0x1d. I'm looking into it separately.

AI-assisted (Claude Code).

@MrCheese5

Copy link
Copy Markdown
Contributor

Tested 55d02a5 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass (no regression against main).

  • Clean RelWithDebInfo Ninja build of runtime/ (Vulkan SDK 1.4.363.0), then ctest: 32/32 pass.
  • GPU tests with LEONIDA_VK_VALIDATION=1 and the Khronos validation layer: d3d12_com_test, d3d12_descriptor_test, d3d12_gcl8_test, d3d12_method_variants_test, d3d12_resource_desc_test, d3d12_sampler2_test, d3d12_state_map_test, d3d12_typeless_rtv_test, d3d12_uav_clear_test, d3d12_vulkan_device_test, vk_command_replay_test pass, with 0 validation messages (no VUIDs).
  • d3d12_clear_test fails, the same as on plain main 4a36bb1 on this GPU (NVIDIA rounds the 0.5 clear on 8-bit UNORM/SNORM down: Vulkan 7f, WARP 80, plus one depth-format-55 case that main shows too). This is not caused by this PR; Runtime: clears match WARP on every format class: tie rounding, and the SNORM/SINT/R8/R16 formats (D3D-45) #521 fixes the rounding.

The vk_* harness tests that need translated SPIR-V weren't run. No game files used. AI-assisted run (Claude Code).

@Italo-Felipe-dev

Copy link
Copy Markdown
Contributor

Independent AMD Radeon RX 7600 validation — pass with #855

Tested PR #737 at commit 55d02a5 on Windows 11, AMD Radeon RX 7600 (RDNA3), using synthetic tests only. Vulkan validation enabled with LEONIDA_VK_VALIDATION=1.

PR #737 alone:

  • Runtime build: 167/167 targets.
  • depth24_convert_test: passed.
  • CTest: 31/32 passed, 1 failed, 1 disabled (gameinput).
  • The only failure was d3d12_vulkan_device_test, due to the existing OPTIONS19 issue: ours 0xf not subset of host 0x1d.

PR #737 + PR #855 (462fc35), locally merged in an isolated worktree:

  • Merge completed without conflicts.
  • Runtime build: 167/167 targets.
  • CTest: 32/32 passed, 0 failed, 1 disabled (gameinput).
  • d3d12_vulkan_device_test: passed with Vulkan validation enabled.
  • GPU identified as AMD Radeon RX 7600.
  • NoOutputsSamples=0xd, 0 mismatches across 15 feature queries.
  • D24 clears: 5,215 values matched the host, including whole-view and rectangle clears (322 regions).
  • Typeless D24: 200 values matched the host.
  • D24 predicated upload/readback copies matched the host's unpredicated execution.
  • Executable exit code: 0.

This confirms the D24 test paths pass on my RX 7600 when combined with #855. The standalone #737 test is blocked by the independently reported OPTIONS19 issue.

No game files or game-derived data used. AI-assisted testing and reporting.

@bobcatchris

Copy link
Copy Markdown
Contributor

Tested 55d02a5 on an AMD RDNA3 desktop GPU — the hardware this PR exists for, since the device has no native D24. Pass.

Setup: RX 7900 XTX (RDNA3, gfx1100), AMD driver 26.10.1 (LLPC), Vulkan 1.4.359, Windows 11 build 26200, Ryzen 7 7800X3D, MSVC 19.39, llvm-mc 21.1.8, CMake/Ninja. The device reports D24 unavailable ([rt] d3d12: D24_UNORM_S8_UINT unavailable, using D32_SFLOAT_S8_UINT), so the D32S8-backed path is the live one in every case below.

  • Build: 167 targets, clean.
  • depth24_convert_test: ok — all 16,777,216 words survive float and back; 16,777,216 float patterns (specials, ties and their neighbours included) quantise like the reference; a pitched copy at an offset touches only its texels.
  • LEONIDA_VK_VALIDATION=1 d3d12_vulkan_device_test: exit 0, 0 validation hazards (synchronization validation on). Depth-relevant lines:
    • copy case D24_UNORM_S8_UINT: matches the host (72 regions)
    • copy case D32_FLOAT: matches the host (36 regions), copy case D32_FLOAT_S8X24_UINT: matches the host (72 regions)
    • depth24 typeless: R24G8_TYPELESS with a D24 DSV, 200 values, match the host
    • Depth/stencil MSAA quality queries: 12 compared, 8 host-unsupported skipped, 0 mismatches
    • Resolve comparison: 60 compared, 60 matched, 10 unsupported or host-unavailable cases skipped, 0 mismatches
  • LEONIDA_VK_VALIDATION=1 ctest: 32/32 pass, 0 failed (one test disabled).

One caveat about my environment, not your PR: main still has #854 (OPTIONS19.SupportedSampleCountsWithNoOutputs: ours 0xf not subset of host 0x1d), which #855 fixes but has not landed. I applied #855's four-line mask to my working copy only to get past it — nothing else touched, nothing pushed. With that mask your PR is fully green here; without it the only failure is that unrelated OPTIONS19 line.

AI-assisted.

@JavierBlanco23

Copy link
Copy Markdown
Contributor

Tested #737 at 55d02a5 on Windows 11, RTX 5080 (Blackwell), driver 616.56, Vulkan 1.4.x, MSVC 19.44.

d3d12_vulkan_device_test: All host comparisons match

  • FORMAT_INFO: 195 queries, 0 mismatches
  • CheckFeatureSupport options: 15 queries, 0 mismatches
  • Copy comparison: 0/69 cases differ (known BC mip differences documented)
  • D24 clears: Host reads back 478/5215 values differently from reference (tie rounding); layer matches reference ✅
  • R24G8_TYPELESS clears: Host reads back 21/200 values differently from reference; layer matches reference ✅
  • MSAA quality: 12 compared, 8 skipped, 0 mismatches
  • Resolve: 60/60 matched, 10 skipped
  • WriteToSubresource/ReadFromSubresource: both paths matched
  • GetCopyableFootprints, GetResourceTiling: matched

ctest: 32/33 PASS with LEONIDA_VK_VALIDATION=1 (gameinput disabled)

Note: Exit code 1 from d3d12_vulkan_device_test with validation due to 1 pre-existing ReShade layer load error, not from this PR.

AI-assisted.

@ItsNotRexed
ItsNotRexed merged commit a03a3db into ItsNotRexed:main Nov 22, 2026
11 checks passed
ItsNotRexed pushed a commit that referenced this pull request Nov 22, 2026
…tion makes

On a GPU without Vulkan D24_UNORM_S8_UINT (AMD), a D24 texture is a D32_SFLOAT_S8_UINT image (#737), but
CheckFeatureSupport answered from the D24 format itself: FORMAT_SUPPORT gave Support1 = 0 for
D24_UNORM_S8_UINT and R24G8_TYPELESS, and MULTISAMPLE_QUALITY_LEVELS gave 0 levels for R24G8_TYPELESS at
every count, while CreateCommittedResource(ALLOW_DEPTH_STENCIL) succeeded (found by @zneel, #1380 item 2).

- FORMAT_SUPPORT queries D32_SFLOAT_S8_UINT when the format resolves to D24 and the device can't use D24.
- MULTISAMPLE_QUALITY_LEVELS takes the creation path for typeless formats that are only valid as depth.
- d3d12_d24_support_test checks the layer against itself on any GPU: DEPTH_STENCIL is reported exactly when
  a 1x depth-stencil texture is created, and a quality level exactly when a 2x/4x/8x one is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants