panfrost: Don't pack blend constants with blend shaders

It's probably harmless, but it is logically meaningless. The DDK doesn't do it,
I don't see a reason for us to, either. In theory this should be a small
overhead win.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15204>
This commit is contained in:
Alyssa Rosenzweig 2022-01-29 10:16:21 -05:00 committed by Marge Bot
parent 111f5af303
commit e42b0c68f4

View file

@ -304,7 +304,8 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts, mali_ptr *blend_sha
cfg.round_to_fb_precision = !dithered;
cfg.alpha_to_one = ctx->blend->base.alpha_to_one;
#if PAN_ARCH >= 6
cfg.constant = pack_blend_constant(format, cons);
if (!blend_shaders[i])
cfg.constant = pack_blend_constant(format, cons);
#else
cfg.blend_shader = (blend_shaders[i] != 0);