projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
603940d
)
glsl: Allow the use of determinant() in GLSL 1.50.
author
Kenneth Graunke
<kenneth@whitecape.org>
Sat, 8 Jun 2013 07:06:52 +0000
(
00:06
-0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 10 Jun 2013 17:54:57 +0000
(10:54 -0700)
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 <mattst88@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtins/profiles/150.glsl
patch
|
blob
|
history
diff --git
a/src/glsl/builtins/profiles/150.glsl
b/src/glsl/builtins/profiles/150.glsl
index 78fef51793541037829b513eab9ab91b12ec2106..70c65f22c1405dd388fa215af85cbb43f69955bd 100644
(file)
--- 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);