Commit Graph

2 Commits

Author SHA1 Message Date
9d36ec83ce d3d12: resolve a depth-only layer above 0 in a render pass (D3D-417)
AMD's Windows driver (32.0.21042.62) resolves a dynamic-rendering depth
attachment from layer 0 of the image when the multisampled view starts at
another layer, so ResolveSubresourceRegion of slice s of a 4x D32 array
gave slice 0. The same views in a VkFramebuffer of a VkRenderPass resolve
the right layer there; NVIDIA does both ways. A depth-only source above
layer 0 now takes the render pass on every GPU. Depth-stencil sources are
unchanged and still wrong on that driver.

d3d12_view_slices_test reads the 4x D32 array back on the layer and adds
views that count their slices.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:40:34 +02:00
0fa95b983e d3d12: ArraySize -1 in 2D-array RTVs and DSVs is every slice from the first on
CreateRenderTargetView and CreateDepthStencilView stored ArraySize -1 of a
TEXTURE2DARRAY or TEXTURE2DMSARRAY view as the layer count, so the view was
nulled (typeless and castable RGBA8) or the list was refused at replay. The
host accepts it and clears the remaining slices. Resolve it at creation;
out-of-range views are refused as before. d3d12_view_slices_test compares
clears through such views with the host on the same adapter and WARP.

d3d12_typeless_rtv_test listed {first slice 1, ArraySize -1} on a four-slice
texture among the views the layer must reject; the host accepts that view, so
the entry now uses first slice 4, which the host refuses too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:59:14 +02:00