diff options
author | Matt Turner <[email protected]> | 2017-02-24 15:22:54 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-03-23 14:34:43 -0700 |
commit | c597f87739bae7d0d386381417a0aba6bbc39fe2 (patch) | |
tree | c4316c9f82ae0c10fee22cfd52a1b9dbd254f1c5 /src/compiler/nir/nir_lower_vars_to_ssa.c | |
parent | 7d41bf8d7b4a094bdfa725d68053ab21a1365ad5 (diff) |
nir: Return progress from nir_lower_vars_to_ssa().
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_vars_to_ssa.c')
-rw-r--r-- | src/compiler/nir/nir_lower_vars_to_ssa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_lower_vars_to_ssa.c b/src/compiler/nir/nir_lower_vars_to_ssa.c index 37a786cbacd..e5a12eb9713 100644 --- a/src/compiler/nir/nir_lower_vars_to_ssa.c +++ b/src/compiler/nir/nir_lower_vars_to_ssa.c @@ -737,11 +737,15 @@ nir_lower_vars_to_ssa_impl(nir_function_impl *impl) return progress; } -void +bool nir_lower_vars_to_ssa(nir_shader *shader) { + bool progress = false; + nir_foreach_function(function, shader) { if (function->impl) - nir_lower_vars_to_ssa_impl(function->impl); + progress |= nir_lower_vars_to_ssa_impl(function->impl); } + + return progress; } |