From: Christian Gmeiner Date: Tue, 4 Aug 2020 20:44:21 +0000 (+0200) Subject: etnaviv: call nir_lower_bool_to_bitsize X-Git-Tag: upstream/21.0.0~6749 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e63a7882a0ae2461cc2b84de96549c2df9d25985;p=platform%2Fupstream%2Fmesa.git 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 Signed-off-by: Christian Gmeiner Part-of: --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c index 3352510..79ef97c 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c @@ -1138,6 +1138,7 @@ etna_compile_shader_nir(struct etna_shader_variant *v) NIR_PASS_V(s, nir_opt_dce); + NIR_PASS_V(s, nir_lower_bool_to_bitsize); NIR_PASS_V(s, etna_lower_alu, c->specs->has_new_transcendentals); if (DBG_ENABLED(ETNA_DBG_DUMP_SHADERS))