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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user