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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10625>
This commit is contained in:
Mike Blumenkrantz
2021-05-05 09:25:50 -04:00
committed by Marge Bot
parent 63df2f736d
commit 2b1711c8fd
@@ -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;
}
{