ir3: fix returning false instead of NULL

Fixes: 9de628b65c ("ir3: fold and/or and negations into branches")
Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27986>
This commit is contained in:
Job Noorman 2024-03-05 16:24:31 +01:00 committed by Marge Bot
parent 9cfc44532b
commit 8d0f9c8fcd

View file

@ -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;