etnaviv: Emit PE.ALPHA_COLOR_EXT* on GPUs with half-float support
authorMarek Vasut <marex@denx.de>
Sun, 22 Mar 2020 02:48:05 +0000 (03:48 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 25 Mar 2020 18:21:05 +0000 (19:21 +0100)
commit9e78f17b74a862e34891901cde8292f91adeb655
tree685a1771463c697ddc3c5fd671ac8adc7812188e
parent4897e70ccd3987d470ec8622d473ee3405f6e96f
etnaviv: Emit PE.ALPHA_COLOR_EXT* on GPUs with half-float support

At least GC880 (iMX6S), GC2000 (iMX6Q) blobs do not emit the
PE.ALPHA_COLOR_EXT0 and PE.ALPHA_COLOR_EXT1 into the command
stream. The GCnano (STM32MP1) is not affected by this change
either. This is because neither of these GPUs support the
half-float feature.

Emit PE.ALPHA_COLOR_EXT* in etnaviv only if half-float support
is present in the GPU. This fixes all of the currently failing
dEQPs in this group:
  dEQP-GLES2.functional.fragment_ops.blend.*

Fixes: 76adf041f25 ("etnaviv: fix blend color on newer GPUs")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4277>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4277>
src/gallium/drivers/etnaviv/etnaviv_emit.c