projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb7546
)
nir: Properly invalidate metadata in nir_opt_copy_prop().
author
Kenneth Graunke
<kenneth@whitecape.org>
Tue, 3 Nov 2015 05:21:25 +0000
(21:21 -0800)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 4 Nov 2015 01:06:48 +0000
(17:06 -0800)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
src/glsl/nir/nir_opt_copy_propagate.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_opt_copy_propagate.c
b/src/glsl/nir/nir_opt_copy_propagate.c
index 96520f8a361714ea25ac40108b82eec72bfda6ca..7d8bdd7f2caa6c184bb4065b96e822582a514f04 100644
(file)
--- a/
src/glsl/nir/nir_opt_copy_propagate.c
+++ b/
src/glsl/nir/nir_opt_copy_propagate.c
@@
-262,6
+262,12
@@
nir_copy_prop_impl(nir_function_impl *impl)
bool progress = false;
nir_foreach_block(impl, copy_prop_block, &progress);
+
+ if (progress) {
+ nir_metadata_preserve(impl, nir_metadata_block_index |
+ nir_metadata_dominance);
+ }
+
return progress;
}