Mesa (7.9): glsl: Add definition of gl_TextureMatrix inverse/ transpose builtins.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Sep 22 20:43:59 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 902dfdaa86451044a396802fa81a8a448919bb3f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=902dfdaa86451044a396802fa81a8a448919bb3f
Author: Eric Anholt <eric at anholt.net>
Date: Tue Sep 21 10:08:38 2010 -0700
glsl: Add definition of gl_TextureMatrix inverse/transpose builtins.
Fixes glsl2/builtin-texturematrix.
Bug #30196.
(cherry picked from commit b5bb21562942dab7571ef748c3ca562a66f25b33)
---
src/glsl/ir_variable.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp
index 3fed4d9..1eff740 100644
--- a/src/glsl/ir_variable.cpp
+++ b/src/glsl/ir_variable.cpp
@@ -162,6 +162,9 @@ generate_110_uniforms(exec_list *instructions,
state->Const.MaxTextureCoords);
add_uniform(instructions, state, "gl_TextureMatrix", mat4_array_type);
+ add_uniform(instructions, state, "gl_TextureMatrixInverse", mat4_array_type);
+ add_uniform(instructions, state, "gl_TextureMatrixTranspose", mat4_array_type);
+ add_uniform(instructions, state, "gl_TextureMatrixInverseTranspose", mat4_array_type);
add_uniform(instructions, state, "gl_DepthRange",
state->symbols->get_type("gl_DepthRangeParameters"));
More information about the mesa-commit
mailing list