summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-11-02 21:43:40 -0800
committerKenneth Graunke <kenneth@whitecape.org>2015-11-03 17:06:48 -0800
commit59bbe2681b73c3795b7298e2486d5fde7c464ed5 (patch)
tree3f9c99583ceb9fc488972ad0b0115e5af570b2e1 /src/glsl
parentbc3942e2970c60a816cf954b1fa4d416d0852bd9 (diff)
downloadexternal_mesa3d-59bbe2681b73c3795b7298e2486d5fde7c464ed5.zip
external_mesa3d-59bbe2681b73c3795b7298e2486d5fde7c464ed5.tar.gz
external_mesa3d-59bbe2681b73c3795b7298e2486d5fde7c464ed5.tar.bz2
nir: Properly invalidate metadata in nir_opt_remove_phis().
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
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir_opt_remove_phis.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_opt_remove_phis.c b/src/glsl/nir/nir_opt_remove_phis.c
index 5bdf7ef..66d3754 100644
--- a/src/glsl/nir/nir_opt_remove_phis.c
+++ b/src/glsl/nir/nir_opt_remove_phis.c
@@ -108,6 +108,11 @@ remove_phis_impl(nir_function_impl *impl)
nir_foreach_block(impl, remove_phis_block, &progress);
+ if (progress) {
+ nir_metadata_preserve(impl, nir_metadata_block_index |
+ nir_metadata_dominance);
+ }
+
return progress;
}