etnaviv: call nir_lower_bool_to_bitsize
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 4 Aug 2020 20:44:21 +0000 (22:44 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Aug 2020 03:25:36 +0000 (03:25 +0000)
commite63a7882a0ae2461cc2b84de96549c2df9d25985
treebe75efca17cf45f66543c4038a5be19d79eee29b
parentc5b231962887e687f6665a79900a21ec0fd95cbf
etnaviv: call nir_lower_bool_to_bitsize

Starting with commit 6f394343b1f ("nir/algebraic: i2f(f2i()) -> trunc()")
dEQP-GLES2.functional.shaders.operator.binary_operator.div.lowp_int_vertex
ends with an unsuppored flt instruction. Use nir_lower_bool_to_bitsize to
convert this flt to a flt32 which is supported. This fixes the introduced
regression.

Cc: 20.2 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6182>
src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c