freedreno/ir3: Lower bools to bitsize
authorNeil Roberts <nroberts@igalia.com>
Thu, 31 Jan 2019 15:19:36 +0000 (16:19 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 24 Mar 2020 23:21:21 +0000 (23:21 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3885>

src/freedreno/ir3/ir3_context.c

index b8ec4a7da447539f955304711c25192f40355369..706316d897c0bf0241c87f6a671fe078e5daa60b 100644 (file)
@@ -78,7 +78,7 @@ ir3_context_init(struct ir3_compiler *compiler,
        /* this needs to be the last pass run, so do this here instead of
         * in ir3_optimize_nir():
         */
-       NIR_PASS_V(ctx->s, nir_lower_bool_to_int32);
+       NIR_PASS_V(ctx->s, nir_lower_bool_to_bitsize);
        bool progress = false;
        NIR_PASS(progress, ctx->s, nir_lower_locals_to_regs);