diff options
author | Jason Ekstrand <[email protected]> | 2017-01-06 15:33:35 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-01-06 16:44:28 -0800 |
commit | 58fe5c57cd424889fd0a655cc4c19569ad7ba960 (patch) | |
tree | b3c0d673346ebadb30d21d9f5a7f055e04f4fc12 /src/compiler | |
parent | 2d7bed6158a1f119411d4e9f34beb7846065ae93 (diff) |
nir/dead_variables: Removed shared variables when requested
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_remove_dead_variables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_remove_dead_variables.c b/src/compiler/nir/nir_remove_dead_variables.c index f7429eb83da..e0eaa3dc23b 100644 --- a/src/compiler/nir/nir_remove_dead_variables.c +++ b/src/compiler/nir/nir_remove_dead_variables.c @@ -135,6 +135,9 @@ nir_remove_dead_variables(nir_shader *shader, nir_variable_mode modes) if (modes & nir_var_system_value) progress = remove_dead_vars(&shader->system_values, live) || progress; + if (modes & nir_var_shared) + progress = remove_dead_vars(&shader->shared, live) || progress; + if (modes & nir_var_local) { nir_foreach_function(function, shader) { if (function->impl) { |