<div dir="ltr"><div class="gmail_quote">---<br>
 tests/all.py                  |   1 -<br>
 tests/glean/CMakeLists.gl.txt |   1 -<br>
 tests/glean/tpaths.cpp        | 375 ------------------------------------------<br>
 tests/glean/tpaths.h          |  79 ---------<br>
 4 files changed, 456 deletions(-)<br>
 delete mode 100644 tests/glean/tpaths.cpp<br>
 delete mode 100644 tests/glean/tpaths.h<br>
<br>
diff --git a/tests/all.py b/tests/all.py<br>
index 7bee936..316476b 100644<br>
--- a/tests/all.py<br>
+++ b/tests/all.py<br>
@@ -258,7 +258,6 @@ with profile.group_manager(GleanTest, 'glean') as g:<br>
     g('fbo')<br>
     g('getString')<br>
     g('occluQry')<br>
-    g('paths')<br>
     g('pixelFormats')<br>
     g('pointAtten')<br>
     g('pointSprite')<br>
diff --git a/tests/glean/CMakeLists.gl.txt b/tests/glean/CMakeLists.gl.txt<br>
index 355eadd..c39e65b 100644<br>
--- a/tests/glean/CMakeLists.gl.txt<br>
+++ b/tests/glean/CMakeLists.gl.txt<br>
@@ -35,7 +35,6 @@ piglit_add_executable (glean<br>
        tglsl1.cpp<br>
        tmultitest.cpp<br>
        toccluqry.cpp<br>
-       tpaths.cpp<br>
        tpixelformats.cpp<br>
        tpointatten.cpp<br>
        tpointsprite.cpp<br>
diff --git a/tests/glean/tpaths.cpp b/tests/glean/tpaths.cpp<br>
deleted file mode 100644<br>
index 7807a08..0000000<br>
--- a/tests/glean/tpaths.cpp<br>
+++ /dev/null<br>
@@ -1,375 +0,0 @@<br>
-// BEGIN_COPYRIGHT -*- glean -*-<br>
-//<br>
-// Copyright (C) 1999  Allen Akin   All Rights Reserved.<br>
-//<br>
-// Permission is hereby granted, free of charge, to any person<br>
-// obtaining a copy of this software and associated documentation<br>
-// files (the "Software"), to deal in the Software without<br>
-// restriction, including without limitation the rights to use,<br>
-// copy, modify, merge, publish, distribute, sublicense, and/or<br>
-// sell copies of the Software, and to permit persons to whom the<br>
-// Software is furnished to do so, subject to the following<br>
-// conditions:<br>
-//<br>
-// The above copyright notice and this permission notice shall be<br>
-// included in all copies or substantial portions of the<br>
-// Software.<br>
-//<br>
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY<br>
-// KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE<br>
-// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR<br>
-// PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL ALLEN AKIN BE<br>
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN<br>
-// AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF<br>
-// OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
-// DEALINGS IN THE SOFTWARE.<br>
-//<br>
-// END_COPYRIGHT<br>
-<br>
-<br>
-// tpaths.h:  Basic test of GL rendering paths.<br>
-// This test verifies that basic, trival OpenGL paths work as expected.<br>
-// For example, glAlphaFunc(GL_GEQUAL, 0.0) should always pass and<br>
-// glAlphaFunc(GL_LESS, 0.0) should always fail.  We setup trivial<br>
-// pass and fail conditions for each of alpha test, blending, color mask,<br>
-// depth test, logic ops, scissor, stencil, stipple, and texture and<br>
-// make sure they work as expected.  We also setup trival-pass for all<br>
-// these paths simultaneously and test that as well.<br>
-//<br>
-// To test for pass/fail we examine the color buffer for white or black,<br>
-// respectively.<br>
-//<br>
-// Author: Brian Paul (<a href="mailto:brianp@valinux.com">brianp@valinux.com</a>)  November 2000<br>
-<br>
-#include <stdlib.h><br>
-#include "tpaths.h"<br>
-#include  <cstdlib><br>
-<br>
-namespace GLEAN {<br>
-<br>
-void<br>
-PathsTest::SetPathState(Path path, State state) const {<br>
-<br>
-       switch (path) {<br>
-       case ALPHA:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       glAlphaFunc(GL_GEQUAL, 0.0);<br>
-                       glEnable(GL_ALPHA_TEST);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       glAlphaFunc(GL_GREATER, 1.0);<br>
-                       glEnable(GL_ALPHA_TEST);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_ALPHA_TEST);<br>
-               }<br>
-               break;<br>
-       case BLEND:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       glBlendFunc(GL_ONE, GL_ZERO);<br>
-                       glEnable(GL_BLEND);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       glBlendFunc(GL_ZERO, GL_ONE);<br>
-                       glEnable(GL_BLEND);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_BLEND);<br>
-               }<br>
-               break;<br>
-       case COLOR_MASK:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);<br>
-               }<br>
-               else {<br>
-                       glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);<br>
-               }<br>
-               break;<br>
-       case DEPTH:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       glDepthFunc(GL_ALWAYS);<br>
-                       glEnable(GL_DEPTH_TEST);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       glDepthFunc(GL_NEVER);<br>
-                       glEnable(GL_DEPTH_TEST);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_DEPTH_TEST);<br>
-               }<br>
-               break;<br>
-       case LOGIC:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       glLogicOp(GL_OR);<br>
-                       glEnable(GL_COLOR_LOGIC_OP);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       glLogicOp(GL_AND);<br>
-                       glEnable(GL_COLOR_LOGIC_OP);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_COLOR_LOGIC_OP);<br>
-               }<br>
-               break;<br>
-       case SCISSOR:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       glScissor(0, 0, 10, 10);<br>
-                       glEnable(GL_SCISSOR_TEST);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       glScissor(0, 0, 0, 0);<br>
-                       glEnable(GL_SCISSOR_TEST);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_SCISSOR_TEST);<br>
-               }<br>
-               break;<br>
-       case STENCIL:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       // pass if reference <= stencil value (ref = 0)<br>
-                       glStencilFunc(GL_LEQUAL, 0, ~0);<br>
-                       glEnable(GL_STENCIL_TEST);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       // pass if reference > stencil value (ref = 0)<br>
-                       glStencilFunc(GL_GREATER, 0, ~0);<br>
-                       glEnable(GL_STENCIL_TEST);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_STENCIL_TEST);<br>
-               }<br>
-               break;<br>
-       case STIPPLE:<br>
-               if (state == ALWAYS_PASS) {<br>
-                       GLubyte stipple[4*32];<br>
-                       for (int i = 0; i < 4*32; i++)<br>
-                               stipple[i] = 0xff;<br>
-                       glPolygonStipple(stipple);<br>
-                       glEnable(GL_POLYGON_STIPPLE);<br>
-               }<br>
-               else if (state == ALWAYS_FAIL) {<br>
-                       GLubyte stipple[4*32];<br>
-                       for (int i = 0; i < 4*32; i++)<br>
-                               stipple[i] = 0x0;<br>
-                       glPolygonStipple(stipple);<br>
-                       glEnable(GL_POLYGON_STIPPLE);<br>
-               }<br>
-               else {<br>
-                       glDisable(GL_POLYGON_STIPPLE);<br>
-               }<br>
-               break;<br>
-       case TEXTURE:<br>
-               if (state == DISABLE) {<br>
-                       glDisable(GL_TEXTURE_2D);<br>
-               }<br>
-               else {<br>
-                       GLubyte val = (state == ALWAYS_PASS) ? 0xff : 0x00;<br>
-                       int i;<br>
-                       GLubyte texImage[4*4*4];<br>
-                       for (i = 0; i < 4*4*4; i++)<br>
-                               texImage[i] = val;<br>
-                       glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0,<br>
-                                    GL_RGBA, GL_UNSIGNED_BYTE, texImage);<br>
-                       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,<br>
-                                       GL_NEAREST);<br>
-                       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,<br>
-                                       GL_NEAREST);<br>
-                       glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE,<br>
-                                 GL_MODULATE);<br>
-                       glEnable(GL_TEXTURE_2D);<br>
-               }<br>
-               break;<br>
-       default:<br>
-               abort(); // error<br>
-       }<br>
-}<br>
-<br>
-<br>
-const char *<br>
-PathsTest::PathName(Path path) const {<br>
-<br>
-       switch (path) {<br>
-       case ALPHA:<br>
-               return "Alpha Test";<br>
-       case BLEND:<br>
-               return "Blending";<br>
-       case COLOR_MASK:<br>
-               return "Color Mask";<br>
-       case DEPTH:<br>
-               return "Depth Test";<br>
-       case LOGIC:<br>
-               return "LogicOp";<br>
-       case SCISSOR:<br>
-               return "Scissor Test";<br>
-       case STENCIL:<br>
-               return "Stencil Test";<br>
-       case STIPPLE:<br>
-               return "Polygon Stipple";<br>
-       case TEXTURE:<br>
-               return "Modulated Texture";<br>
-       case ZZZ:<br>
-               return "paths";<br>
-       default:<br>
-               return "???";<br>
-       }<br>
-}<br>
-<br>
-<br>
-void<br>
-PathsTest::FailMessage(BasicResult &r, Path path, State state, GLfloat pixel[3])<br>
-                      const {<br>
-       env->log << name << ":  FAIL "<br>
-                << r.config->conciseDescription() << '\n';<br>
-       if (state == ALWAYS_PASS) {<br>
-               env->log << "\t" << PathName(path)<br>
-                        << " should have had no effect (1, 1, 1)"<br>
-                        << " but actually modified the fragment: "<br>
-                        << "(" << pixel[0] << "," << pixel[1] << ","<br>
-                        << pixel[2] << ")\n";<br>
-       }<br>
-       else {<br>
-               env->log << "\t" << PathName(path)<br>
-                        << " should have culled the fragment (0, 0, 0)"<br>
-                        << " but actually didn't: (" << pixel[0] << ","<br>
-                        << pixel[1] << "," << pixel[2] << ")\n";<br>
-       }<br>
-}<br>
-<br>
-<br>
-///////////////////////////////////////////////////////////////////////////////<br>
-// runOne:  Run a single test case<br>
-///////////////////////////////////////////////////////////////////////////////<br>
-void<br>
-PathsTest::runOne(BasicResult& r, Window&) {<br>
-<br>
-       Path p, paths[1000];<br>
-       int i, numPaths = 0;<br>
-<br>
-       // draw 10x10 pixel quads<br>
-       glViewport(0, 0, 10, 10);<br>
-<br>
-       glDisable(GL_DITHER);<br>
-<br>
-       // Build the list of paths to exercise.  Skip depth test if we have no<br>
-       // depth buffer.  Skip stencil test if we have no stencil buffer.<br>
-       for (p = ALPHA; p != ZZZ; p = (Path) (p + 1)) {<br>
-               if (!((p == DEPTH && r.config->z == 0) ||<br>
-                     (p == STENCIL && r.config->s == 0))) {<br>
-                       paths[numPaths++] = p;<br>
-               }<br>
-       }<br>
-<br>
-       // test always-pass paths<br>
-       for (i = 0; i < numPaths; i++) {<br>
-               glClear(GL_COLOR_BUFFER_BIT);<br>
-<br>
-               SetPathState(paths[i], ALWAYS_PASS);<br>
-<br>
-               // draw polygon<br>
-               glColor4f(1, 1, 1, 1);<br>
-               glBegin(GL_POLYGON);<br>
-               glVertex2f(-1, -1);<br>
-               glVertex2f( 1, -1);<br>
-               glVertex2f( 1,  1);<br>
-               glVertex2f(-1,  1);<br>
-               glEnd();<br>
-<br>
-               SetPathState(paths[i], DISABLE);<br>
-<br>
-               // test buffer<br>
-               GLfloat pixel[3];<br>
-               glReadPixels(4, 4, 1, 1, GL_RGB, GL_FLOAT, pixel);<br>
-               if (pixel[0] != 1.0 || pixel[1] != 1.0 || pixel[2] != 1.0) {<br>
-                       FailMessage(r, paths[i], ALWAYS_PASS, pixel);<br>
-                       r.pass = false;<br>
-                       return;<br>
-               }<br>
-       }<br>
-<br>
-       // enable all always-pass paths<br>
-       {<br>
-               glClear(GL_COLOR_BUFFER_BIT);<br>
-<br>
-               for (i = 0; i < numPaths; i++) {<br>
-                       SetPathState(paths[i], ALWAYS_PASS);<br>
-               }<br>
-<br>
-               // draw polygon<br>
-               glColor4f(1, 1, 1, 1);<br>
-               glBegin(GL_POLYGON);<br>
-               glVertex2f(-1, -1);<br>
-               glVertex2f( 1, -1);<br>
-               glVertex2f( 1,  1);<br>
-               glVertex2f(-1,  1);<br>
-               glEnd();<br>
-<br>
-               for (i = 0; i < numPaths; i++) {<br>
-                       SetPathState(paths[i], DISABLE);<br>
-               }<br>
-<br>
-               // test buffer<br>
-               GLfloat pixel[3];<br>
-               glReadPixels(4, 4, 1, 1, GL_RGB, GL_FLOAT, pixel);<br>
-               if (pixel[0] != 1.0 || pixel[1] != 1.0 || pixel[2] != 1.0) {<br>
-                       FailMessage(r, paths[i], ALWAYS_PASS, pixel);<br>
-                       r.pass = false;<br>
-                       return;<br>
-               }<br>
-       }<br>
-<br>
-       // test never-pass paths<br>
-       for (i = 0; i < numPaths; i++) {<br>
-               glClear(GL_COLOR_BUFFER_BIT);<br>
-<br>
-               SetPathState(paths[i], ALWAYS_FAIL);<br>
-<br>
-               // draw polygon<br>
-               glColor4f(1, 1, 1, 1);<br>
-               glBegin(GL_POLYGON);<br>
-               glVertex2f(-1, -1);<br>
-               glVertex2f( 1, -1);<br>
-               glVertex2f( 1,  1);<br>
-               glVertex2f(-1,  1);<br>
-               glEnd();<br>
-<br>
-               SetPathState(paths[i], DISABLE);<br>
-<br>
-               // test buffer<br>
-               GLfloat pixel[3];<br>
-               glReadPixels(4, 4, 1, 1, GL_RGB, GL_FLOAT, pixel);<br>
-               if (pixel[0] != 0.0 || pixel[1] != 0.0 || pixel[2] != 0.0) {<br>
-                       FailMessage(r, paths[i], ALWAYS_FAIL, pixel);<br>
-                       r.pass = false;<br>
-                       return;<br>
-               }<br>
-       }<br>
-<br>
-       // success<br>
-       r.pass = true;<br>
-} // PathsTest::runOne<br>
-<br>
-///////////////////////////////////////////////////////////////////////////////<br>
-// logOne:  Log a single test case<br>
-///////////////////////////////////////////////////////////////////////////////<br>
-void<br>
-PathsTest::logOne(BasicResult& r) {<br>
-       if (r.pass) {<br>
-               logPassFail(r);<br>
-               logConcise(r);<br>
-       }<br>
-} // PathsTest::logOne<br>
-<br>
-///////////////////////////////////////////////////////////////////////////////<br>
-// The test object itself:<br>
-///////////////////////////////////////////////////////////////////////////////<br>
-PathsTest pathsTest("paths", "window, rgb",<br>
-<br>
-       "This test verifies that basic OpenGL operations such as the alpha\n"<br>
-       "test, depth test, blending, stippling, and texturing work for\n"<br>
-       "trivial cases.\n");<br>
-<br>
-<br>
-} // namespace GLEAN<br>
diff --git a/tests/glean/tpaths.h b/tests/glean/tpaths.h<br>
deleted file mode 100644<br>
index 3b1704b..0000000<br>
--- a/tests/glean/tpaths.h<br>
+++ /dev/null<br>
@@ -1,79 +0,0 @@<br>
-// BEGIN_COPYRIGHT -*- glean -*-<br>
-//<br>
-// Copyright (C) 1999  Allen Akin   All Rights Reserved.<br>
-//<br>
-// Permission is hereby granted, free of charge, to any person<br>
-// obtaining a copy of this software and associated documentation<br>
-// files (the "Software"), to deal in the Software without<br>
-// restriction, including without limitation the rights to use,<br>
-// copy, modify, merge, publish, distribute, sublicense, and/or<br>
-// sell copies of the Software, and to permit persons to whom the<br>
-// Software is furnished to do so, subject to the following<br>
-// conditions:<br>
-//<br>
-// The above copyright notice and this permission notice shall be<br>
-// included in all copies or substantial portions of the<br>
-// Software.<br>
-//<br>
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY<br>
-// KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE<br>
-// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR<br>
-// PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL ALLEN AKIN BE<br>
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN<br>
-// AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF<br>
-// OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
-// DEALINGS IN THE SOFTWARE.<br>
-//<br>
-// END_COPYRIGHT<br>
-<br>
-<br>
-// tpaths.h:  Basic test of GL rendering paths.<br>
-// Author: Brian Paul (<a href="mailto:brianp@valinux.com">brianp@valinux.com</a>)  November 2000<br>
-<br>
-<br>
-#ifndef __tpaths_h__<br>
-#define __tpaths_h__<br>
-<br>
-#include "tbasic.h"<br>
-<br>
-namespace GLEAN {<br>
-<br>
-class PathsTest: public BasicTest {<br>
-    public:<br>
-       PathsTest(const char* testName, const char* filter,<br>
-                 const char* description):<br>
-           BasicTest(testName, filter, description) {<br>
-       }<br>
-<br>
-       virtual void runOne(BasicResult& r, Window& w);<br>
-       virtual void logOne(BasicResult& r);<br>
-<br>
-    private:<br>
-       enum Path {<br>
-               ALPHA,<br>
-               BLEND,<br>
-               COLOR_MASK,<br>
-               DEPTH,<br>
-               LOGIC,<br>
-               SCISSOR,<br>
-               STENCIL,<br>
-               STIPPLE,<br>
-               TEXTURE,<br>
-               ZZZ  // end-of-list token<br>
-       };<br>
-       enum State {<br>
-               DISABLE,<br>
-               ALWAYS_PASS,<br>
-               ALWAYS_FAIL<br>
-       };<br>
-<br>
-       const char *PathName(Path path) const;<br>
-       void FailMessage(BasicResult &r, Path path, State state,<br>
-                        GLfloat pixel[3]) const;<br>
-       void SetPathState(Path path, State state) const;<br>
-<br>
-}; // class PathsTest<br>
-<br>
-} // namespace GLEAN<br>
-<br>
-#endif // __tpaths_h__<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.4.3<br>
<br>
</font></span></div><br></div>