nir/types: be less strict about constructing matrix types

This commit is contained in:
Connor Abbott 2015-06-18 18:51:51 -07:00
parent 22854a60ef
commit d0fc04aacf

View file

@ -240,7 +240,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);
}