summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-10-18 12:04:09 -0500
committerJason Ekstrand <[email protected]>2018-12-16 21:03:02 +0000
commit11dc1307794e811aa8cfa5c9dace713d82db09ec (patch)
tree88595d35198b3a5bc2e3c4e63c07cd68390281c6 /src/freedreno
parent191a1dce92803a99dae774b47264ff32da7b6689 (diff)
nir: Add a bool to int32 lowering pass
We also enable it in all of the NIR drivers. Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Tested-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_context.c b/src/freedreno/ir3/ir3_context.c
index f93c4d5f77c..bba41377525 100644
--- a/src/freedreno/ir3/ir3_context.c
+++ b/src/freedreno/ir3/ir3_context.c
@@ -77,6 +77,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_locals_to_regs);
NIR_PASS_V(ctx->s, nir_convert_from_ssa, true);