diff options
author | Brian Paul <brianp@vmware.com> | 2012-06-29 10:54:53 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-07-31 12:46:44 -0600 |
commit | cf0002531e14518b4a28f1fd80c4baeb6e099e31 (patch) | |
tree | 667c5233fc3d7e240fb5a469d3fc833a19b48012 | |
parent | f4502735ae01d6beea0b858770720b4f5f0d8fe5 (diff) |
remove glsl-vs-sqrt-zero test
As with the previous commit, but VS.
Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | tests/all.tests | 1 | ||||
-rw-r--r-- | tests/shaders/CMakeLists.gl.txt | 1 | ||||
-rw-r--r-- | tests/shaders/glsl-vs-sqrt-zero.c | 80 | ||||
-rw-r--r-- | tests/shaders/glsl-vs-sqrt-zero.vert | 6 |
4 files changed, 0 insertions, 88 deletions
diff --git a/tests/all.tests b/tests/all.tests index 725feb09f..4744ca454 100644 --- a/tests/all.tests +++ b/tests/all.tests @@ -505,7 +505,6 @@ add_plain_test(shaders, 'glsl-vs-loop-nested') add_plain_test(shaders, 'glsl-vs-mov-after-deref') add_plain_test(shaders, 'glsl-vs-mvp-statechange') add_plain_test(shaders, 'glsl-vs-raytrace-bug26691') -add_plain_test(shaders, 'glsl-vs-sqrt-zero') add_plain_test(shaders, 'glsl-vs-statechange-1') add_plain_test(shaders, 'vp-address-01') add_plain_test(shaders, 'vp-address-02') diff --git a/tests/shaders/CMakeLists.gl.txt b/tests/shaders/CMakeLists.gl.txt index f89ef80a6..6ac023007 100644 --- a/tests/shaders/CMakeLists.gl.txt +++ b/tests/shaders/CMakeLists.gl.txt @@ -103,7 +103,6 @@ piglit_add_executable (glsl-vs-loop-nested glsl-vs-loop-nested.c) IF (NOT MSVC) piglit_add_executable (glsl-vs-raytrace-bug26691 glsl-vs-raytrace-bug26691.c) ENDIF (NOT MSVC) -piglit_add_executable (glsl-vs-sqrt-zero glsl-vs-sqrt-zero.c) piglit_add_executable (glsl-vs-statechange-1 glsl-vs-statechange-1.c) piglit_add_executable (glsl-vs-user-varying-ff glsl-vs-user-varying-ff.c) piglit_add_executable (glsl-light-model glsl-light-model.c) diff --git a/tests/shaders/glsl-vs-sqrt-zero.c b/tests/shaders/glsl-vs-sqrt-zero.c deleted file mode 100644 index 531cb883b..000000000 --- a/tests/shaders/glsl-vs-sqrt-zero.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright © 2009 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Eric Anholt <eric@anholt.net> - * - */ - -/** @file glsl-vs-sqrt-zero.c - * - * Tests that sqrt(0.0) in the VS produces 0.0. - */ - -#include "piglit-util-gl-common.h" - -PIGLIT_GL_TEST_MAIN( - 100 /*window_width*/, - 100 /*window_height*/, - GLUT_RGB | GLUT_DOUBLE) - -static GLint prog; - -enum piglit_result -piglit_display(void) -{ - GLboolean pass = GL_TRUE; - float color[4] = {0.75, 0.75, 0.75, 0.75}; - - glClearColor(0.5, 0.5, 0.5, 0.5); - glClear(GL_COLOR_BUFFER_BIT); - - piglit_draw_rect(10, 10, 10, 10); - - pass &= piglit_probe_rect_rgb(10, 10, 10, 10, color); - - glutSwapBuffers(); - - return pass ? PIGLIT_PASS : PIGLIT_FAIL; -} - -void -piglit_init(int argc, char **argv) -{ - GLint vs, fs; - - if (piglit_get_gl_version() < 20) { - printf("Requires OpenGL 2.0\n"); - piglit_report_result(PIGLIT_SKIP); - } - - piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - - vs = piglit_compile_shader(GL_VERTEX_SHADER, - "shaders/glsl-vs-sqrt-zero.vert"); - fs = piglit_compile_shader(GL_FRAGMENT_SHADER, - "shaders/glsl-color.frag"); - - prog = piglit_link_simple_program(vs, fs); - - glUseProgram(prog); -} diff --git a/tests/shaders/glsl-vs-sqrt-zero.vert b/tests/shaders/glsl-vs-sqrt-zero.vert deleted file mode 100644 index e2c0c1b21..000000000 --- a/tests/shaders/glsl-vs-sqrt-zero.vert +++ /dev/null @@ -1,6 +0,0 @@ -void main() -{ - gl_FrontColor = vec4(sqrt(0.0) + 0.75); - gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; -} - |