[Mesa-dev] [PATCH 5/8] nir: Properly invalidate metadata in nir_opt_copy_prop().

Jason Ekstrand jason at jlekstrand.net
Tue Nov 3 13:29:53 PST 2015


Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

On Tue, Nov 3, 2015 at 12:31 AM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/glsl/nir/nir_opt_copy_propagate.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/glsl/nir/nir_opt_copy_propagate.c b/src/glsl/nir/nir_opt_copy_propagate.c
> index 96520f8..7d8bdd7 100644
> --- 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;
>  }
>
> --
> 2.6.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list