projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22854a6
)
nir/types: be less strict about constructing matrix types
author
Connor Abbott
<cwabbott0@gmail.com>
Fri, 19 Jun 2015 01:51:51 +0000
(18:51 -0700)
committer
Connor Abbott
<cwabbott0@gmail.com>
Fri, 19 Jun 2015 01:51:51 +0000
(18:51 -0700)
src/glsl/nir/nir_types.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_types.cpp
b/src/glsl/nir/nir_types.cpp
index d44d48095da254e13d7a7a75d398fb1d89cf15da..3c00bdb3c18c93c99196c8a8032da7933333831e 100644
(file)
--- a/
src/glsl/nir/nir_types.cpp
+++ b/
src/glsl/nir/nir_types.cpp
@@
-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);
}