[Mesa-dev] [PATCH] glsl: initialise record count to 1

Marek Olšák maraeo at gmail.com
Thu Oct 15 07:27:06 PDT 2015


Thanks a lot.

Tested-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Oct 15, 2015 at 5:16 AM, Timothy Arceri <t_arceri at yahoo.com.au> wrote:
> This was only being done in one of the two process methods.
>
> Fixes issue with samplers using the array size of a previous record.
>
> Cc: Marek Olšák <maraeo at gmail.com>
> Cc: Jason Ekstrand <jason at jlekstrand.net>
> ---
>  src/glsl/link_uniforms.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
> index 0ccd9c8..e60b050 100644
> --- a/src/glsl/link_uniforms.cpp
> +++ b/src/glsl/link_uniforms.cpp
> @@ -160,6 +160,7 @@ program_resource_visitor::process(ir_variable *var)
>                  false, record_array_count);
>        ralloc_free(name);
>     } else {
> +      this->set_record_array_count(record_array_count);
>        this->visit_field(t, var->name, row_major, NULL, packing, false);
>     }
>  }
> --
> 2.4.3
>


More information about the mesa-dev mailing list