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 Dylan Baker
parent 335a71d687
commit 649c2f5bd0
2 changed files with 2 additions and 1 deletions

View file

@ -4294,7 +4294,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,
"notes": null

View file

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