Mesa (main): lavapipe: pull layer count from render state during resolve

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 19 01:31:46 UTC 2021


Module: Mesa
Branch: main
Commit: 67dd6b9f0f1d41f08181c0277ff35ac24235c5d9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=67dd6b9f0f1d41f08181c0277ff35ac24235c5d9

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Oct  1 19:06:43 2021 -0400

lavapipe: pull layer count from render state during resolve

vk_framebuffer may be null

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13349>

---

 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;
 



More information about the mesa-commit mailing list