From: Alyssa Rosenzweig Date: Thu, 20 Aug 2020 20:46:04 +0000 (-0400) Subject: panfrost: Drop redundant NULL check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=518537d1c8c8958db97bc08bf28182cc9e43921b;p=mesa.git 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: --- 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);