From 63df2f736dee9270d4ba84fcfb30995e1370b0f0 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 dsa state info and flag for updating on null dsa 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 6ae6e71d051..3e8315455f3 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -571,9 +571,9 @@ static void handle_graphics_pipeline(struct lvp_cmd_buffer_entry *cmd, state->stencil_ref_dirty = true; } } - - state->dsa_dirty = true; - } + } else + memset(&state->dsa_state, 0, sizeof(state->dsa_state)); + state->dsa_dirty = true; if (pipeline->graphics_create_info.pColorBlendState) { const VkPipelineColorBlendStateCreateInfo *cb = pipeline->graphics_create_info.pColorBlendState;