[Mesa-dev] [PATCH] glsl: fix component size calculation for tessellation and geom shaders

Marek Olšák maraeo at gmail.com
Sun Sep 27 18:28:50 PDT 2015


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

Marek

On Mon, Sep 28, 2015 at 3:08 AM, Timothy Arceri <t_arceri at yahoo.com.au> wrote:
> Broken in commit abdab88b30ab when adding arrays of arrays support
>
> Cc: Dave Airlie <airlied at gmail.com>
> ---
>  src/glsl/link_varyings.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
> index 0d343d6..7e77a67 100644
> --- a/src/glsl/link_varyings.cpp
> +++ b/src/glsl/link_varyings.cpp
> @@ -964,7 +964,7 @@ varying_matches::record(ir_variable *producer_var, ir_variable *consumer_var)
>           }
>           slots *= type->matrix_columns;
>        } else {
> -         slots = var->type->matrix_columns;
> +         slots = type->matrix_columns;
>        }
>        this->matches[this->num_matches].num_components = 4 * slots;
>     } else {
> --
> 2.4.3
>
> _______________________________________________
> 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