[Mesa-dev] [PATCH 4/5] glsl: Enable NV_non_square_matrices types

Rafal Mielniczuk rafal.mielniczuk2 at gmail.com
Wed Feb 26 10:34:45 PST 2014


Signed-off-by: Rafal Mielniczuk <rafal.mielniczuk2 at gmail.com>
---
 src/glsl/builtin_types.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/glsl/builtin_types.cpp b/src/glsl/builtin_types.cpp
index dd42ecb..bb260b8 100644
--- a/src/glsl/builtin_types.cpp
+++ b/src/glsl/builtin_types.cpp
@@ -360,5 +360,14 @@ _mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state)
    if (state->ARB_shader_atomic_counters_enable) {
       add_type(symbols, glsl_type::atomic_uint_type);
    }
+
+   if (state->NV_non_square_matrices_enable) {
+      add_type(symbols, glsl_type::mat2x3_type);
+      add_type(symbols, glsl_type::mat3x2_type);
+      add_type(symbols, glsl_type::mat2x4_type);
+      add_type(symbols, glsl_type::mat4x2_type);
+      add_type(symbols, glsl_type::mat3x4_type);
+      add_type(symbols, glsl_type::mat4x3_type);
+   }
 }
 /** @} */
-- 
1.9.0



More information about the mesa-dev mailing list