From 67dd6b9f0f1d41f08181c0277ff35ac24235c5d9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 1 Oct 2021 19:06:43 -0400 Subject: [PATCH] lavapipe: pull layer count from render state during resolve vk_framebuffer may be null Reviewed-by: Dave Airlie Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 9fd269ef24f..5f2dde2faff 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -1681,7 +1681,7 @@ static void render_pass_resolve(struct rendering_state *state) info.src.box.y = state->render_area.offset.y; info.src.box.width = state->render_area.extent.width; info.src.box.height = state->render_area.extent.height; - info.src.box.depth = state->vk_framebuffer->layers; + info.src.box.depth = state->framebuffer.layers; info.dst.box = info.src.box;