Module: Mesa Branch: staging/18.1 Commit: be9dfba546aec8919d3ce6ab5ddedb7067a949a4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=be9dfba546aec8919d3ce6ab5ddedb7067a949a4
Author: Jason Ekstrand <[email protected]> Date: Wed Jul 25 10:33:33 2018 -0700 nir: Take if uses into account in ssa_def_components_read Fixes: d800b7daa5440 "nir: Add a helper for figuring out what..." Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> (cherry picked from commit 9a4ab4c120b97397321b8a86abdbdbe96ee42141) --- src/compiler/nir/nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index cfce6ab3dc..f1dead4caf 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1758,6 +1758,9 @@ nir_ssa_def_components_read(const nir_ssa_def *def) } } + if (!list_empty(&def->if_uses)) + read_mask |= 1; + return read_mask; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
