etnaviv: fix alpha blend with dither on older GPUs
authorLucas Stach <l.stach@pengutronix.de>
Wed, 6 Oct 2021 14:26:57 +0000 (16:26 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Dec 2021 03:06:15 +0000 (03:06 +0000)
commitfc17f79f2ccd75ba19f17055ae1f5e441208e599
tree20d152d88a36b76b3a7614d9f70fa8ee4876a165
parentd199d65c3af6cc87cd77585b21435ddb5125654d
etnaviv: fix alpha blend with dither on older GPUs

While setting up DITHER_MODE allows alpha blending to work properly
together with dithering on new GPUs (those with PE_DITHER_FIX), older
cores still change the render target. As dithering is optional and
implementation defined we can simply disable it on the affected GPUs,
when alpha blending is enabled to work around this bug.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13396>
src/gallium/drivers/etnaviv/etnaviv_blend.c