etnaviv: blend: Move logicop_enable assignment

With this change the next one will look nicer.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26565>
This commit is contained in:
Christian Gmeiner
2023-11-20 16:20:01 +01:00
committed by Marge Bot
parent 1e4ad853df
commit ec7a962e3a
+3 -3
View File
@@ -54,6 +54,9 @@ etna_blend_state_create(struct pipe_context *pctx,
co->base = *so;
logicop_enable = so->logicop_enable &&
VIV_FEATURE(ctx->screen, ETNA_FEATURE_LOGIC_OP);
/* Enable blending if
* - blend enabled in blend state
* - NOT source factor is ONE and destination factor ZERO and eq is ADD for
@@ -91,9 +94,6 @@ etna_blend_state_create(struct pipe_context *pctx,
co->rt[0].PE_ALPHA_CONFIG = 0;
}
logicop_enable = so->logicop_enable &&
VIV_FEATURE(ctx->screen, ETNA_FEATURE_LOGIC_OP);
co->PE_LOGIC_OP =
VIVS_PE_LOGIC_OP_OP(logicop_enable ? so->logicop_func : LOGIC_OP_COPY) |
VIVS_PE_LOGIC_OP_DITHER_MODE(3) | /* TODO: related to dithering, sometimes 2 */