From 518537d1c8c8958db97bc08bf28182cc9e43921b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 20 Aug 2020 16:46:04 -0400 Subject: [PATCH] panfrost: Drop redundant NULL check ctx->blend is already dereferenced by this point anyway. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index c214dd6ba72..4a11bc98d81 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -686,7 +686,7 @@ panfrost_emit_frag_shader(struct panfrost_context *ctx, zsa->base.depth.enabled ? zsa->base.depth.func : PIPE_FUNC_ALWAYS)); SET_BIT(fragmeta->unknown2_4, MALI_NO_DITHER, - (dev->quirks & MIDGARD_SFBD) && ctx->blend && + (dev->quirks & MIDGARD_SFBD) && !ctx->blend->base.dither); SET_BIT(fragmeta->unknown2_4, 0x10, dev->quirks & MIDGARD_SFBD); -- 2.30.2