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 <[email protected]>

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);
> 

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to