[Mesa-dev] [PATCH] glsl: Allow the use of determinant() in GLSL 1.50.
Kenneth Graunke
kenneth at whitecape.org
Sat Jun 8 00:11:01 PDT 2013
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}
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/glsl/builtins/profiles/150.glsl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glsl/builtins/profiles/150.glsl b/src/glsl/builtins/profiles/150.glsl
index 78fef51..70c65f2 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);
--
1.8.3
More information about the mesa-dev
mailing list