lavapipe: honor dst base array layer when resolving color attachments

CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22924>
(cherry picked from commit 57afa7c0b1)
This commit is contained in:
Matthieu Bouron 2023-05-09 12:29:33 +02:00 committed by Eric Engestrom
parent 3e9b9fdc77
commit fb1c2a3dcd
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@
"description": "lavapipe: honor dst base array layer when resolving color attachments",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1778,6 +1778,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;