From 08514a9721144f877d670091de6e6d946a5e73f8 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Fri, 12 Jul 2019 19:26:32 -0400 Subject: 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 --- src/gallium/drivers/etnaviv/etnaviv_blend.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/etnaviv/etnaviv_blend.c') 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; -- cgit v1.2.3