glsl: fix component size calculation for tessellation and geom shaders
authorTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 28 Sep 2015 01:03:19 +0000 (11:03 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 28 Sep 2015 01:31:50 +0000 (11:31 +1000)
Broken in commit abdab88b30ab when adding arrays of arrays support

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/glsl/link_varyings.cpp

index 0d343d64a2effdd18517e65e357864e275a87ede..7e77a675db15a860bd93dc49f55a8cf7e360f640 100644 (file)
@@ -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 {