From 8d0f9c8fcdac44d49b9c3caed7d12ec7b502d747 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Tue, 5 Mar 2024 16:24:31 +0100 Subject: [PATCH] ir3: fix returning false instead of NULL Fixes: 9de628b65ca ("ir3: fold and/or and negations into branches") Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 9cb73cbc00c..a0d94fca16d 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -3828,7 +3828,7 @@ static struct ir3_instruction * fold_conditional_branch(struct ir3_context *ctx, struct nir_src *nir_cond) { if (!ctx->compiler->has_branch_and_or) - return false; + return NULL; if (nir_cond->ssa->parent_instr->type != nir_instr_type_alu) return NULL;