summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_lower_atomics.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-12-12 16:25:38 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:20:21 -0800
commit295faf9462cba88250d8581f65611996eba5e389 (patch)
treeaafe263df770d4596119f8b62547a96430fead15 /src/glsl/nir/nir_lower_atomics.c
parentb6c81b3ff453d51898f86a819f80ea1128aea0fe (diff)
nir: Call nir_metadata_preserve more places
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_lower_atomics.c')
-rw-r--r--src/glsl/nir/nir_lower_atomics.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_lower_atomics.c b/src/glsl/nir/nir_lower_atomics.c
index 23d5de0c0ac..b43e4fedf0d 100644
--- a/src/glsl/nir/nir_lower_atomics.c
+++ b/src/glsl/nir/nir_lower_atomics.c
@@ -137,7 +137,10 @@ void
nir_lower_atomics(nir_shader *shader)
{
nir_foreach_overload(shader, overload) {
- if (overload->impl)
+ if (overload->impl) {
nir_foreach_block(overload->impl, lower_block, overload->impl);
+ nir_metadata_preserve(overload->impl, nir_metadata_block_index |
+ nir_metadata_dominance);
+ }
}
}