[Mesa-dev] [PATCH 2/5] nir: fix nir_shader_clone()
Eduardo Lima Mitev
elima at igalia.com
Fri Oct 28 08:54:45 UTC 2016
On 10/28/2016 08:27 AM, Timothy Arceri wrote:
> This was broken in e1af20f18a8 when the info field in nir_shader was
> turned into a pointer.
> ---
Patch is:
Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>
thanks!
> src/compiler/nir/nir_clone.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compiler/nir/nir_clone.c b/src/compiler/nir/nir_clone.c
> index f23fabc..4f7bdd9 100644
> --- a/src/compiler/nir/nir_clone.c
> +++ b/src/compiler/nir/nir_clone.c
> @@ -710,7 +710,7 @@ nir_shader_clone(void *mem_ctx, const nir_shader *s)
> clone_reg_list(&state, &ns->registers, &s->registers);
> ns->reg_alloc = s->reg_alloc;
>
> - ns->info = s->info;
> + *ns->info = *s->info;
> ns->info->name = ralloc_strdup(ns, ns->info->name);
> if (ns->info->label)
> ns->info->label = ralloc_strdup(ns, ns->info->label);
>
More information about the mesa-dev
mailing list