lavapipe: don't access pipeline blend state when it should be ignored

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:29:41 -04:00
committed by Marge Bot
parent 636a3903be
commit 4dc17b898b

View File

@@ -341,7 +341,7 @@ deep_copy_graphics_create_info(void *mem_ctx,
dst->pDepthStencilState = NULL;
/* pColorBlendState */
if (src->pColorBlendState) {
if (src->pColorBlendState && !rasterization_disabled && pass->has_color_attachment) {
VkPipelineColorBlendStateCreateInfo* cb_state;
cb_state = ralloc(mem_ctx, VkPipelineColorBlendStateCreateInfo);