panfrost: Drop redundant NULL check

ctx->blend is already dereferenced by this point anyway.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6440>
This commit is contained in:
Alyssa Rosenzweig 2020-08-20 16:46:04 -04:00 committed by Tomeu Vizoso
parent acf77cbb39
commit 518537d1c8

View file

@ -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);