nir/types: Allow single-column matrices
This can sometimes be a convenient way to build vectors.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user