projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22fdb2f
)
nir/types: Allow single-column matrices
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 5 Sep 2015 01:26:05 +0000
(18:26 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 5 Sep 2015 01:50:14 +0000
(18:50 -0700)
This can sometimes be a convenient way to build vectors.
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
809a7cf
..
69cfac1
100644
(file)
--- a/
src/glsl/nir/nir_types.cpp
+++ b/
src/glsl/nir/nir_types.cpp
@@
-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);
}