From: Jonathan Marek Date: Fri, 12 Jul 2019 23:26:32 +0000 (-0400) Subject: etnaviv: set DITHER_MODE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=08514a9721144f877d670091de6e6d946a5e73f8;p=mesa.git etnaviv: set DITHER_MODE This fixes a rendering glitch observed in SDL testscale test, where alpha blending samples with value (1.0, 1.0, 1.0, 0.0) whitens the target instead of having no effect. Signed-off-by: Jonathan Marek Reviewed-by: Christian Gmeiner --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_blend.c b/src/gallium/drivers/etnaviv/etnaviv_blend.c index 637586aee72..1f57499e454 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_blend.c +++ b/src/gallium/drivers/etnaviv/etnaviv_blend.c @@ -90,6 +90,7 @@ etna_blend_state_create(struct pipe_context *pctx, 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 */ 0x000E4000 /* ??? */; co->fo_allowed = !alpha_enable && !logicop_enable;