summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-06-08 00:06:52 -0700
committerKenneth Graunke <[email protected]>2013-06-10 10:54:57 -0700
commitca6b520f3ae16e0c6334534e24c22231ddb64d54 (patch)
tree8e869324490e9aa5de48b11c9d457ebf38154b19 /src/glsl/builtins
parent603940d5bb69933543b41221ae5b4511fcde3eeb (diff)
glsl: Allow the use of determinant() in GLSL 1.50.
We already implemented this for ES3, so we just need to turn it on. Fixes 6 Piglit tests: spec/glsl-1.50/compiler/built-in-functions/determinant-mat[234].{vert,frag} Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtins')
-rw-r--r--src/glsl/builtins/profiles/150.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/150.glsl b/src/glsl/builtins/profiles/150.glsl
index 78fef517935..70c65f22c14 100644
--- a/src/glsl/builtins/profiles/150.glsl
+++ b/src/glsl/builtins/profiles/150.glsl
@@ -383,6 +383,10 @@ mat4x2 transpose(mat2x4 m);
mat3x4 transpose(mat4x3 m);
mat4x3 transpose(mat3x4 m);
+float determinant(mat2 m);
+float determinant(mat3 m);
+float determinant(mat4 m);
+
mat2 inverse(mat2 m);
mat3 inverse(mat3 m);
mat4 inverse(mat4 m);