lavapipe: fix resolves where src image has a layer offset

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589>
(cherry picked from commit 9e2f95eae3)
This commit is contained in:
Mike Blumenkrantz 2023-08-09 15:21:47 -04:00 committed by Dylan Baker
parent 7f37c0d07d
commit db50924867
2 changed files with 2 additions and 1 deletions

View file

@ -8954,7 +8954,7 @@
"description": "lavapipe: fix resolves where src image has a layer offset",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

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