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 <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 788121158a
commit 63df2f736d

View file

@ -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;