From 188cd32883767b347a8bed831335aad77cca72bb Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 3 Feb 2010 08:16:56 -0700 Subject: glsl1: added another cross() test targetting Mesa --- src/glean/tglsl1.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 @@ -886,6 +886,27 @@ static const ShaderProgram Programs[] = { FLAG_NONE }, + { + // 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, -- cgit v1.2.3