mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
nir/types: be less strict about constructing matrix types
This commit is contained in:
parent
22854a60ef
commit
d0fc04aacf
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue