From 2b1711c8fd75600aa7327470fad81c23173a8a6b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 5 May 2021 09:25:50 -0400 Subject: [PATCH] lavapipe: zero out the blend state info and flag for updating on null blend state this still needs to be updated if there's no pipeline info available Reviewed-by: Dave Airlie Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 3e8315455f3..9a8f3401df1 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -617,6 +617,9 @@ static void handle_graphics_pipeline(struct lvp_cmd_buffer_entry *cmd, memcpy(state->blend_color.color, cb->blendConstants, 4 * sizeof(float)); state->blend_color_dirty = true; } + } else { + memset(&state->blend_state, 0, sizeof(state->blend_state)); + state->blend_dirty = true; } {