aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/nir/nir_types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/nir/nir_types.cpp')
-rw-r--r--mesalib/src/glsl/nir/nir_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/glsl/nir/nir_types.cpp b/mesalib/src/glsl/nir/nir_types.cpp
index f0d0b46d2..62176f508 100644
--- a/mesalib/src/glsl/nir/nir_types.cpp
+++ b/mesalib/src/glsl/nir/nir_types.cpp
@@ -103,7 +103,7 @@ glsl_get_matrix_columns(const struct glsl_type *type)
unsigned
glsl_get_length(const struct glsl_type *type)
{
- return type->length;
+ return type->is_matrix() ? type->matrix_columns : type->length;
}
const char *