diff options
author | Brian Paul <brianp@vmware.com> | 2010-02-03 08:16:56 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-03 08:16:56 -0700 |
commit | 188cd32883767b347a8bed831335aad77cca72bb (patch) | |
tree | f41f090bf368e86375dfbe390527c422870ea93f | |
parent | c11f52cd6431c55567d78d54da7c9f51fbf91dec (diff) |
glsl1: added another cross() test targetting Mesa
-rw-r--r-- | src/glean/tglsl1.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp index f659bbf..4ec2509 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -887,6 +887,27 @@ static const ShaderProgram Programs[] = { }, { + // This is a Mesa regression test (bump.c) + "cross() function, in-place", + NO_VERTEX_SHADER, + "void main() { \n" + " vec3 u,v ; \n" + " u.x = 0.8; \n" + " u.y = -0.5; \n" + " u.z = 1.0; \n" + " v.x = 0.1; \n" + " v.y = 0.5; \n" + " v.z = -2.0; \n" + " u = cross(u, v); \n" + " gl_FragColor.xyz = u; \n" + " gl_FragColor.w = 1.0; \n" + "} \n", + { 0.502, 1.0, 0.4509, 1.0 }, + DONT_CARE_Z, + FLAG_NONE + }, + + { "abs() function", NO_VERTEX_SHADER, "void main() { \n" |