Files
metal2vulkan/docs
Anees Iqbal c1a825d748 Volume resolves: RADV writes a 3D image's first plane, so resolve through a scratch copied into the planes
On a Radeon 780M (RADV, Phoenix) a 4x multisampled RGBA8Unorm attachment resolved into depth plane
3 of a 4x4x4 volume, through the 2D view of the plane that resolve::destination attaches, wrote
plane 0 instead (the volume's first byte held the resolve; view_attachments, three runs at each of
two commits, ownpixel's job). Drawing into the same kind of view writes its plane there, and the
usage is valid: a 2D view of a 3D image made 2D_ARRAY_COMPATIBLE "can be used as a framebuffer
attachment that refers only to the specified range of slices" (VkImageSubresourceRange), and of a
resolve attachment Vulkan refuses only a 3D view (VUID-VkRenderingAttachmentInfo-resolveImageView-
12471). MoltenVK on the M3 Max writes each named plane (a_resolve_writes_the_volume_plane_it_names).

RuntimeDriverDefect::VolumeResolveFirstPlane names it, on every RADV GPU until a probe finds one
clean (driver_defects.rs, the table's rule). There a color resolve into a 3D texture's planes past
its first, or into more than one, goes into a scratch image of the pass's layers (Destination::
attach), whose layers ResolveCopies copies into the planes after the pass: one region whose depth is
the layers, from the resolve's first plane (VUID-VkCopyImageInfo2-srcImage-01791, dstImage-04444).
The scratch's copy into a 3D texture was not built before (render_pass::not_2d refused it); it is
now, but for a level reaching past the attachment, whose clear would be of the planes alone, which
stays NotImplemented(Render). Announced as resolve-scratch, its reason naming the defect; the
catalogue and the variant's docs say so. The device's own resolve still averages: the copy moves
its result unchanged.

Tests: tests::driver_defects lists the defect for every committed RADV profile;
runtime_lane::view_attachments::a_resolve_writes_the_volume_plane_it_names fails without the
change on the 780M (to be run with the runtime before it and after, on the 780M and the XTX).
docs/REFUSALS.md regenerated: unchanged.

(cherry picked from commit dcffee430897a499f47155664a8549a248b8a8ad)
(cherry picked from commit 707ef3439b2ca3c5f81f967a1322470da47c0d77)
2026-11-08 22:48:23 -08:00
..