mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nir: Take if uses into account in ssa_def_components_read
Fixes: d800b7daa5 "nir: Add a helper for figuring out what..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
5c1c6939ce
commit
9a4ab4c120
1 changed files with 3 additions and 0 deletions
|
|
@ -1446,6 +1446,9 @@ nir_ssa_def_components_read(const nir_ssa_def *def)
|
|||
}
|
||||
}
|
||||
|
||||
if (!list_empty(&def->if_uses))
|
||||
read_mask |= 1;
|
||||
|
||||
return read_mask;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue