Module: Mesa Branch: main Commit: 4dc17b898b4420c4705a5b5422222c648c5d611c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4dc17b898b4420c4705a5b5422222c648c5d611c
Author: Mike Blumenkrantz <[email protected]> Date: Wed May 5 09:29:41 2021 -0400 lavapipe: don't access pipeline blend state when it should be ignored Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10625> --- src/gallium/frontends/lavapipe/lvp_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c index d79887e858c..333cbd67add 100644 --- a/src/gallium/frontends/lavapipe/lvp_pipeline.c +++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c @@ -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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
