Volume resolves: NVIDIA's leaves plane 1 unwritten, so it resolves through the scratch copied into the planes too
On the RTX 5080 Laptop GPU (NVIDIA 615.71.09)
runtime_lane::view_attachments::a_resolve_writes_the_volume_plane_it_names failed at base and tip
alike, 3/3 each (t3d_resolve_plane1: byte 64 is 0x11, Metal's 0x33). Its VOLUME-RESOLVE lines and a
probe of resolve orders (scratch branch, never merged) show a 4x multisampled RGBA8Unorm attachment
resolved into the 2D view of a 4x4x4 or 4x4x8 volume that begins at depth plane 1 writes no plane:
the volume keeps every byte it had. Into the views at planes 0, 2 and 3 it writes that plane alone,
in every order tried (1023, 3210, 0123) and three times over into plane 1. A draw into plane 1
through the same kind of view writes it (a_volume_s_plane_is_an_attachment passes), and the
validation layer reports nothing, so the usage is the valid one RADV's defect row already cites.
Fix, the RADV fix's shape (c1a825d748): RuntimeDriverDefect::VolumeResolveFirstPlane gains an
NVIDIA_PROPRIETARY row, every NVIDIA GPU until a probe finds one clean. Its meaning is stated for
both drivers: the resolve is written where the view begins only at the image's first plane (RADV
writes plane 0 whatever plane the view begins at; NVIDIA's writes no plane from plane 1). There a
color resolve into a 3D texture's planes past its first, or into more than one, goes into the
scratch image of the pass's layers that is copied into the planes after the pass, announced as
resolve-scratch with the defect named. The variant, the table's doc, the resolve module's docs, the
notice's reason and docs/API.md's catalogue entry say so.
Tests: tests::driver_defects lists the defect for every committed NVIDIA profile (the RTX 5080
Laptop GPU's and the others'), so it fails without the row.
Verified: cargo fmt. The lane on the 5080 at this commit and at its base follows through potluck.
(cherry picked from commit 93795eaaa29dba62257ca9b4c569394e23c269da)
This commit is contained in:
1 parent
aeaa4844ee
commit
2cbe8ce595
6 files changed
+47
-27
No files matched your search
+3
-2
@@ -1973,8 +1973,9 @@ bound.
|
||||
texture that cannot be an attachment (its usage lacks `RenderTarget`), or a layered pass into a
|
||||
texture whose slices from the resolve slice hold fewer layers than the pass's, or a pass resolves
|
||||
color into a 3D texture's planes past its first, or into more than one, on a device whose resolve
|
||||
into a 2D view of a 3D image writes its first plane alone (RADV). Cost: the pass
|
||||
resolves into a scratch image, whose render area is copied into the texture after the pass.
|
||||
into a 2D view of a 3D image is written where the view begins only at its first plane (RADV,
|
||||
NVIDIA's). Cost: the pass resolves into a scratch image, whose render area is copied into the
|
||||
texture after the pass.
|
||||
- `metal2vulkan-degrade-shader-resolve` (performance). `ShaderResolve`: A multisample color resolve
|
||||
drawn after the pass by the crate-owned resolve: of an extended-range attachment, whose codes no
|
||||
device's resolve averages, or into the attachment's format's sRGB twin, whose encoding no
|
||||
|
||||
Reference in new issue
Block a user