mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 15:08:24 +02:00
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:
parent
111f5af303
commit
e42b0c68f4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue