[Mesa-dev] [PATCH 14/26] nir/sweep: Sweep function parameters
Rob Clark
robdclark at gmail.com
Sat Mar 26 16:18:42 UTC 2016
On Fri, Mar 25, 2016 at 7:12 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> They are no longer in the list of local variables so we need to explicitly
> sweep them.
Reviewed-by: Rob Clark <robdclark at gmail.com>
> ---
> src/compiler/nir/nir_sweep.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/compiler/nir/nir_sweep.c b/src/compiler/nir/nir_sweep.c
> index 5c62154..b22f0f5 100644
> --- a/src/compiler/nir/nir_sweep.c
> +++ b/src/compiler/nir/nir_sweep.c
> @@ -119,6 +119,8 @@ sweep_impl(nir_shader *nir, nir_function_impl *impl)
> ralloc_steal(nir, impl);
>
> ralloc_steal(nir, impl->params);
> + for (unsigned i = 0; i < impl->num_params; i++)
> + ralloc_steal(nir, impl->params[i]);
> ralloc_steal(nir, impl->return_var);
> steal_list(nir, nir_variable, &impl->locals);
> steal_list(nir, nir_register, &impl->registers);
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list