etnaviv: Fix regression from if_uses change.

Flipped the condition in the conversion.

Fixes: 7f6491b76d ("nir: Combine if_uses with instruction uses")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22430>
This commit is contained in:
Emma Anholt 2023-04-11 13:59:37 -07:00 committed by Marge Bot
parent bd3191dbfe
commit f8a8b7708e

View file

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