From: Timothy Arceri Date: Mon, 28 Sep 2015 01:03:19 +0000 (+1000) Subject: glsl: fix component size calculation for tessellation and geom shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e413d2fbc4b37eb552ee42940fb792e504233e51;p=mesa.git glsl: fix component size calculation for tessellation and geom shaders Broken in commit abdab88b30ab when adding arrays of arrays support Reviewed-by: Dave Airlie --- diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 0d343d64a2e..7e77a675db1 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 {