etnaviv: Call lower_bool_to_int32 not to_bitsize

It calls both for some reason but never handles any other booleans than
32-bit.  This was probably a mistake.

Fixes: e63a7882a0 ("etnaviv: call nir_lower_bool_to_bitsize")
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
(cherry picked from commit 6fb3995659)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
Faith Ekstrand 2026-03-09 15:27:50 -04:00 committed by Eric Engestrom
parent f550eb1903
commit 740734ac72
2 changed files with 2 additions and 2 deletions

View file

@ -504,7 +504,7 @@
"description": "etnaviv: Call lower_bool_to_int32 not to_bitsize",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e63a7882a0ae2461cc2b84de96549c2df9d25985",
"notes": null

View file

@ -1327,7 +1327,7 @@ etna_compile_shader(struct etna_shader_variant *v)
NIR_PASS(_, s, nir_opt_dce);
NIR_PASS(_, s, nir_opt_cse);
NIR_PASS(_, s, nir_lower_bool_to_bitsize);
NIR_PASS(_, s, nir_lower_bool_to_int32);
NIR_PASS(_, s, etna_lower_alu, c->specs->has_new_transcendentals);
/* needs to be the last pass that touches pass_flags! */