lavapipe: honor dst base array layer when resolving color attachments
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Tue, 9 May 2023 10:29:33 +0000 (12:29 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 9 May 2023 14:31:39 +0000 (14:31 +0000)
CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22924>

src/gallium/frontends/lavapipe/lvp_execute.c

index 3c549ea..c217dc4 100644 (file)
@@ -1777,6 +1777,7 @@ resolve_color(struct rendering_state *state, bool multi)
       info.src.box.depth = state->framebuffer.layers;
 
       info.dst.box = info.src.box;
+      info.dst.box.z = dst_imgv->vk.base_array_layer;
 
       info.src.level = src_imgv->vk.base_mip_level;
       info.dst.level = dst_imgv->vk.base_mip_level;