From fbbb29aa5b5ee62b53c1af290c5dec58ccc7b40c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 17 Jun 2019 10:08:47 -0700 Subject: [PATCH] panfrost: Don't accidentally include blend shader Some residual dirty state can leak through across frames; zero this out. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index f703300..7f5741d 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1141,6 +1141,8 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data) if (ctx->blend->has_blend_shader) { ctx->fragment_shader_core.blend.shader = ctx->blend->blend_shader; + } else { + ctx->fragment_shader_core.blend.shader = 0; } if (ctx->require_sfbd) { -- 2.7.4