nir/types: Allow single-column matrices

This can sometimes be a convenient way to build vectors.
This commit is contained in:
Jason Ekstrand
2015-09-04 18:26:05 -07:00
parent 22fdb2f855
commit f3bdb93a8e
+1 -1
View File
@@ -252,7 +252,7 @@ glsl_vector_type(enum glsl_base_type base_type, unsigned components)
const glsl_type *
glsl_matrix_type(enum glsl_base_type base_type, unsigned rows, unsigned columns)
{
assert(rows > 1 && rows <= 4 && columns > 1 && columns <= 4);
assert(rows > 1 && rows <= 4 && columns >= 1 && columns <= 4);
return glsl_type::get_instance(base_type, rows, columns);
}