From: Alyssa Rosenzweig Date: Mon, 17 Jun 2019 17:08:47 +0000 (-0700) Subject: panfrost: Don't accidentally include blend shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbbb29aa5b5ee62b53c1af290c5dec58ccc7b40c;p=mesa.git panfrost: Don't accidentally include blend shader Some residual dirty state can leak through across frames; zero this out. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index f7033006494..7f5741da48e 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) {