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

Submitted by Rafal Mielniczuk on Feb. 26, 2014, 6:34 p.m.

Details

Message ID 1393439686-29817-5-git-send-email-rafal.mielniczuk2@gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Rafal Mielniczuk Feb. 26, 2014, 6:34 p.m.
Signed-off-by: Rafal Mielniczuk <rafal.mielniczuk2@gmail.com>
---
 src/glsl/builtin_types.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch hide | download patch | download mbox

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);
+   }
 }
 /** @} */