From f8a8b7708e33ff22dd71c68830c33abe3fb1030a Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 11 Apr 2023 13:59:37 -0700 Subject: [PATCH] etnaviv: Fix regression from if_uses change. Flipped the condition in the conversion. Fixes: 7f6491b76d51 ("nir: Combine if_uses with instruction uses") Part-of: --- src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h index d1cde4ca0c4..08a93bfad92 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h @@ -127,7 +127,7 @@ real_dest(nir_dest *dest, unsigned *swiz, unsigned *mask) if (!dest || !dest->is_ssa) return dest; - bool can_bypass_src = nir_ssa_def_used_by_if(&dest->ssa); + bool can_bypass_src = !nir_ssa_def_used_by_if(&dest->ssa); nir_instr *p_instr = dest->ssa.parent_instr; /* if used by a vecN, the "real" destination becomes the vecN destination