diff options
author | Paul Berry <stereotype441@gmail.com> | 2012-02-27 09:50:42 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2012-03-07 18:20:27 -0800 |
commit | 7ffd7d0691baabaefc3e12dcc5f7f4780a3a3fd9 (patch) | |
tree | fce3f9ca497a2f072f7941cbaf9f19605594b834 /tests/shaders | |
parent | ac16e8c519ad5b5f6f17a7da41d627338a3d2b0d (diff) |
Stop using GLEW_VERSION_* macros
Several tests were checking the GL version using GLEW's GLEW_VERSION_*
macros. This patch changes the tests to use piglit_get_gl_version(),
which provides the same functionality in a way that is not dependent
on GLEW.
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/shaders')
104 files changed, 105 insertions, 105 deletions
diff --git a/tests/shaders/activeprogram-bad-program.c b/tests/shaders/activeprogram-bad-program.c index f87a94e93..a4025bfb0 100644 --- a/tests/shaders/activeprogram-bad-program.c +++ b/tests/shaders/activeprogram-bad-program.c @@ -54,7 +54,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLuint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/activeprogram-get.c b/tests/shaders/activeprogram-get.c index b0fd2c36a..04526eefa 100644 --- a/tests/shaders/activeprogram-get.c +++ b/tests/shaders/activeprogram-get.c @@ -49,7 +49,7 @@ piglit_init(int argc, char **argv) GLuint got; GLuint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/createshaderprogram-attached-shaders.c b/tests/shaders/createshaderprogram-attached-shaders.c index c54c5bc0b..12c2fead3 100644 --- a/tests/shaders/createshaderprogram-attached-shaders.c +++ b/tests/shaders/createshaderprogram-attached-shaders.c @@ -50,7 +50,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLenum err; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/createshaderprogram-bad-type.c b/tests/shaders/createshaderprogram-bad-type.c index 315137955..8871fcf43 100644 --- a/tests/shaders/createshaderprogram-bad-type.c +++ b/tests/shaders/createshaderprogram-bad-type.c @@ -110,7 +110,7 @@ piglit_init(int argc, char **argv) ? 0 : GL_INVALID_ENUM; GLboolean pass; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/fp-fog.c b/tests/shaders/fp-fog.c index aa30f3530..cbc0dc9e0 100644 --- a/tests/shaders/fp-fog.c +++ b/tests/shaders/fp-fog.c @@ -134,7 +134,7 @@ piglit_init(int argc, char **argv) glClearColor(0.3, 0.3, 0.3, 0.3); - if (GLEW_VERSION_1_4) { + if (piglit_get_gl_version() >= 14) { pglFogCoordf = glFogCoordf; } else if (GLEW_EXT_fog_coord) { pglFogCoordf = glFogCoordfEXT; diff --git a/tests/shaders/fp-fragment-position.c b/tests/shaders/fp-fragment-position.c index b2f34a7be..3859d1cb4 100644 --- a/tests/shaders/fp-fragment-position.c +++ b/tests/shaders/fp-fragment-position.c @@ -274,7 +274,7 @@ piglit_init(int argc, char **argv) GLubyte rectangle[200][200][4]; GLubyte tex[256*256][4]; - if (!GLEW_VERSION_1_3) { + if (piglit_get_gl_version() < 13) { printf("Requires OpenGL 1.3\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/fp-kil.c b/tests/shaders/fp-kil.c index 3999d19bf..b32361d4e 100644 --- a/tests/shaders/fp-kil.c +++ b/tests/shaders/fp-kil.c @@ -278,7 +278,7 @@ piglit_init(int argc, char **argv) glutReshapeFunc(Reshape); - if (!GLEW_VERSION_1_3) { + if (piglit_get_gl_version() < 13) { printf("Requires OpenGL 1.3\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-arb-fragment-coord-conventions-define.c b/tests/shaders/glsl-arb-fragment-coord-conventions-define.c index b09bd4fc9..274708164 100644 --- a/tests/shaders/glsl-arb-fragment-coord-conventions-define.c +++ b/tests/shaders/glsl-arb-fragment-coord-conventions-define.c @@ -61,7 +61,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-arb-fragment-coord-conventions.c b/tests/shaders/glsl-arb-fragment-coord-conventions.c index 81648b688..e6f81a5a0 100644 --- a/tests/shaders/glsl-arb-fragment-coord-conventions.c +++ b/tests/shaders/glsl-arb-fragment-coord-conventions.c @@ -218,7 +218,7 @@ static void key_func(unsigned char key, int x, int y) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-bindattriblocation.c b/tests/shaders/glsl-bindattriblocation.c index dd1ebde71..aa389cee1 100644 --- a/tests/shaders/glsl-bindattriblocation.c +++ b/tests/shaders/glsl-bindattriblocation.c @@ -126,7 +126,7 @@ piglit_init(int argc, char **argv) { piglit_require_vertex_shader(); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); exit(1); diff --git a/tests/shaders/glsl-cos.c b/tests/shaders/glsl-cos.c index 14dc907ff..6e3867f84 100644 --- a/tests/shaders/glsl-cos.c +++ b/tests/shaders/glsl-cos.c @@ -109,7 +109,7 @@ enum piglit_result piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-deriv-varyings.c b/tests/shaders/glsl-deriv-varyings.c index 3b4902002..fe37326f9 100644 --- a/tests/shaders/glsl-deriv-varyings.c +++ b/tests/shaders/glsl-deriv-varyings.c @@ -87,7 +87,7 @@ static const char *fragShaderText2 = void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-derivs.c b/tests/shaders/glsl-derivs.c index 7f350fbe9..c2c155e50 100644 --- a/tests/shaders/glsl-derivs.c +++ b/tests/shaders/glsl-derivs.c @@ -86,7 +86,7 @@ static const char *fragShaderText2 = void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-dlist-getattriblocation.c b/tests/shaders/glsl-dlist-getattriblocation.c index 782921885..e33101449 100644 --- a/tests/shaders/glsl-dlist-getattriblocation.c +++ b/tests/shaders/glsl-dlist-getattriblocation.c @@ -95,7 +95,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); exit(1); diff --git a/tests/shaders/glsl-empty-vs-no-fs.c b/tests/shaders/glsl-empty-vs-no-fs.c index 1954e4d09..efa9d22bc 100644 --- a/tests/shaders/glsl-empty-vs-no-fs.c +++ b/tests/shaders/glsl-empty-vs-no-fs.c @@ -73,7 +73,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-explicit-location-01.c b/tests/shaders/glsl-explicit-location-01.c index 6a91031d5..ada2b55ba 100644 --- a/tests/shaders/glsl-explicit-location-01.c +++ b/tests/shaders/glsl-explicit-location-01.c @@ -48,7 +48,7 @@ void piglit_init(int argc, char **argv) GLint prog; GLboolean ok; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-explicit-location-02.c b/tests/shaders/glsl-explicit-location-02.c index f04001228..9cf2dfc7d 100644 --- a/tests/shaders/glsl-explicit-location-02.c +++ b/tests/shaders/glsl-explicit-location-02.c @@ -51,7 +51,7 @@ void piglit_init(int argc, char **argv) GLint loc; GLboolean ok; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-explicit-location-03.c b/tests/shaders/glsl-explicit-location-03.c index 27b4fea05..9970160b3 100644 --- a/tests/shaders/glsl-explicit-location-03.c +++ b/tests/shaders/glsl-explicit-location-03.c @@ -48,7 +48,7 @@ void piglit_init(int argc, char **argv) GLint prog; GLboolean ok; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-explicit-location-04.c b/tests/shaders/glsl-explicit-location-04.c index c1ae761f1..fbd31ac3d 100644 --- a/tests/shaders/glsl-explicit-location-04.c +++ b/tests/shaders/glsl-explicit-location-04.c @@ -45,7 +45,7 @@ void piglit_init(int argc, char **argv) GLint prog; GLboolean ok; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-explicit-location-05.c b/tests/shaders/glsl-explicit-location-05.c index 75474f8d7..fd5808503 100644 --- a/tests/shaders/glsl-explicit-location-05.c +++ b/tests/shaders/glsl-explicit-location-05.c @@ -50,7 +50,7 @@ void piglit_init(int argc, char **argv) GLboolean ok; GLint loc; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-bug25902.c b/tests/shaders/glsl-fs-bug25902.c index cdb29ebda..4d1bbf4ad 100644 --- a/tests/shaders/glsl-fs-bug25902.c +++ b/tests/shaders/glsl-fs-bug25902.c @@ -72,7 +72,7 @@ piglit_init(int argc, char **argv) float black[4] = {0.0, 0.0, 0.0, 0.0}; float white[4] = {1.0, 1.0, 1.0, 0.0}; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-exp2.c b/tests/shaders/glsl-fs-exp2.c index f76e2da55..55d8bedcc 100644 --- a/tests/shaders/glsl-fs-exp2.c +++ b/tests/shaders/glsl-fs-exp2.c @@ -66,7 +66,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-flat-color.c b/tests/shaders/glsl-fs-flat-color.c index 9f275f2e6..6f2cf245c 100644 --- a/tests/shaders/glsl-fs-flat-color.c +++ b/tests/shaders/glsl-fs-flat-color.c @@ -94,7 +94,7 @@ piglit_init(int argc, char **argv) { GLuint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-fogcolor-statechange.c b/tests/shaders/glsl-fs-fogcolor-statechange.c index e625eaa59..c86504368 100644 --- a/tests/shaders/glsl-fs-fogcolor-statechange.c +++ b/tests/shaders/glsl-fs-fogcolor-statechange.c @@ -70,7 +70,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = gl_Fog.color;\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-fragcoord-zw-ortho.c b/tests/shaders/glsl-fs-fragcoord-zw-ortho.c index e7d699271..7b15fb58a 100644 --- a/tests/shaders/glsl-fs-fragcoord-zw-ortho.c +++ b/tests/shaders/glsl-fs-fragcoord-zw-ortho.c @@ -114,7 +114,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs, prog; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-fragcoord-zw-perspective.c b/tests/shaders/glsl-fs-fragcoord-zw-perspective.c index 8b23079b4..352e9e9aa 100644 --- a/tests/shaders/glsl-fs-fragcoord-zw-perspective.c +++ b/tests/shaders/glsl-fs-fragcoord-zw-perspective.c @@ -135,7 +135,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs, prog; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-fragcoord.c b/tests/shaders/glsl-fs-fragcoord.c index 47555e31f..e00efc830 100644 --- a/tests/shaders/glsl-fs-fragcoord.c +++ b/tests/shaders/glsl-fs-fragcoord.c @@ -72,7 +72,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-loop-nested.c b/tests/shaders/glsl-fs-loop-nested.c index e984c264f..d458ce729 100644 --- a/tests/shaders/glsl-fs-loop-nested.c +++ b/tests/shaders/glsl-fs-loop-nested.c @@ -104,7 +104,7 @@ piglit_init(int argc, char **argv) */ piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-loop.c b/tests/shaders/glsl-fs-loop.c index e8c6ff0e5..b7634d73e 100644 --- a/tests/shaders/glsl-fs-loop.c +++ b/tests/shaders/glsl-fs-loop.c @@ -102,7 +102,7 @@ piglit_init(int argc, char **argv) */ piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-mix-constant.c b/tests/shaders/glsl-fs-mix-constant.c index 2f2fa76d6..e2482e4c8 100644 --- a/tests/shaders/glsl-fs-mix-constant.c +++ b/tests/shaders/glsl-fs-mix-constant.c @@ -61,7 +61,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-mix.c b/tests/shaders/glsl-fs-mix.c index 680061043..ed77b38b5 100644 --- a/tests/shaders/glsl-fs-mix.c +++ b/tests/shaders/glsl-fs-mix.c @@ -68,7 +68,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-pointcoord.c b/tests/shaders/glsl-fs-pointcoord.c index f253103af..586789f4c 100644 --- a/tests/shaders/glsl-fs-pointcoord.c +++ b/tests/shaders/glsl-fs-pointcoord.c @@ -92,7 +92,7 @@ void piglit_init(int argc, char**argv) GLint vs, fs; GLint point_size_limits[2]; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); exit(1); diff --git a/tests/shaders/glsl-fs-raytrace-bug27060.c b/tests/shaders/glsl-fs-raytrace-bug27060.c index 2bc986ffd..cfd87c84c 100644 --- a/tests/shaders/glsl-fs-raytrace-bug27060.c +++ b/tests/shaders/glsl-fs-raytrace-bug27060.c @@ -280,7 +280,7 @@ piglit_init(int argc, char **argv) glDisable(GL_DEPTH_TEST); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-sampler-numbering.c b/tests/shaders/glsl-fs-sampler-numbering.c index c3e8b9531..1fe89cd36 100644 --- a/tests/shaders/glsl-fs-sampler-numbering.c +++ b/tests/shaders/glsl-fs-sampler-numbering.c @@ -72,7 +72,7 @@ piglit_init(int argc, char **argv) piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-shader-stencil-export.c b/tests/shaders/glsl-fs-shader-stencil-export.c index 70d947f62..10590ce84 100644 --- a/tests/shaders/glsl-fs-shader-stencil-export.c +++ b/tests/shaders/glsl-fs-shader-stencil-export.c @@ -65,7 +65,7 @@ piglit_init(int argc, char **argv) GLint vs, fs; piglit_require_extension("GL_ARB_shader_stencil_export"); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-sqrt-branch.c b/tests/shaders/glsl-fs-sqrt-branch.c index 054909bd0..c289be409 100644 --- a/tests/shaders/glsl-fs-sqrt-branch.c +++ b/tests/shaders/glsl-fs-sqrt-branch.c @@ -66,7 +66,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-sqrt-zero.c b/tests/shaders/glsl-fs-sqrt-zero.c index 512625e0a..aa74e7a33 100644 --- a/tests/shaders/glsl-fs-sqrt-zero.c +++ b/tests/shaders/glsl-fs-sqrt-zero.c @@ -60,7 +60,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-texture2drect.c b/tests/shaders/glsl-fs-texture2drect.c index 364ea2472..7dadbf3af 100644 --- a/tests/shaders/glsl-fs-texture2drect.c +++ b/tests/shaders/glsl-fs-texture2drect.c @@ -138,7 +138,7 @@ void piglit_init(int argc, char **argv) proj4 = GL_TRUE; } - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-texturecube-2.c b/tests/shaders/glsl-fs-texturecube-2.c index 7f409ce18..b86c35a03 100644 --- a/tests/shaders/glsl-fs-texturecube-2.c +++ b/tests/shaders/glsl-fs-texturecube-2.c @@ -201,7 +201,7 @@ void piglit_init(int argc, char **argv) bias = GL_TRUE; } - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-texturecube.c b/tests/shaders/glsl-fs-texturecube.c index 58809451e..6bc452a17 100644 --- a/tests/shaders/glsl-fs-texturecube.c +++ b/tests/shaders/glsl-fs-texturecube.c @@ -165,7 +165,7 @@ void piglit_init(int argc, char **argv) bias = GL_TRUE; } - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-textureenvcolor-statechange.c b/tests/shaders/glsl-fs-textureenvcolor-statechange.c index ba17f6d89..82281b092 100644 --- a/tests/shaders/glsl-fs-textureenvcolor-statechange.c +++ b/tests/shaders/glsl-fs-textureenvcolor-statechange.c @@ -70,7 +70,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = gl_TextureEnvColor[0];\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-texturelod-01.c b/tests/shaders/glsl-fs-texturelod-01.c index 0dc88f0ec..25313dca2 100644 --- a/tests/shaders/glsl-fs-texturelod-01.c +++ b/tests/shaders/glsl-fs-texturelod-01.c @@ -125,7 +125,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs, prog, sampler_uniform; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fs-user-varying-ff.c b/tests/shaders/glsl-fs-user-varying-ff.c index dc62e7359..3853066f3 100644 --- a/tests/shaders/glsl-fs-user-varying-ff.c +++ b/tests/shaders/glsl-fs-user-varying-ff.c @@ -71,7 +71,7 @@ piglit_init(int argc, char **argv) { GLuint fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-fwidth.c b/tests/shaders/glsl-fwidth.c index a8a301f10..659d2140c 100644 --- a/tests/shaders/glsl-fwidth.c +++ b/tests/shaders/glsl-fwidth.c @@ -84,7 +84,7 @@ static const char *fragShaderText2 = void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-getactiveuniform-array-size.c b/tests/shaders/glsl-getactiveuniform-array-size.c index d8b8daba6..de8c39268 100644 --- a/tests/shaders/glsl-getactiveuniform-array-size.c +++ b/tests/shaders/glsl-getactiveuniform-array-size.c @@ -53,7 +53,7 @@ piglit_init(int argc, char **argv) GLsizei size; GLenum type; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-getactiveuniform-length.c b/tests/shaders/glsl-getactiveuniform-length.c index be834d426..b4a2ffbb9 100644 --- a/tests/shaders/glsl-getactiveuniform-length.c +++ b/tests/shaders/glsl-getactiveuniform-length.c @@ -54,7 +54,7 @@ piglit_init(int argc, char **argv) char *name; GLsizei size; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-getattriblocation.c b/tests/shaders/glsl-getattriblocation.c index 80c3de548..c5d554b5f 100644 --- a/tests/shaders/glsl-getattriblocation.c +++ b/tests/shaders/glsl-getattriblocation.c @@ -114,7 +114,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); exit(1); diff --git a/tests/shaders/glsl-invalid-asm-01.c b/tests/shaders/glsl-invalid-asm-01.c index 92392da71..a6686bd20 100644 --- a/tests/shaders/glsl-invalid-asm-01.c +++ b/tests/shaders/glsl-invalid-asm-01.c @@ -76,7 +76,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLenum err; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-invalid-asm-02.c b/tests/shaders/glsl-invalid-asm-02.c index c37ed8d11..b36a50ca4 100644 --- a/tests/shaders/glsl-invalid-asm-02.c +++ b/tests/shaders/glsl-invalid-asm-02.c @@ -75,7 +75,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLenum err; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-kwin-blur-1.c b/tests/shaders/glsl-kwin-blur-1.c index b29ce9b2e..8f4899396 100644 --- a/tests/shaders/glsl-kwin-blur-1.c +++ b/tests/shaders/glsl-kwin-blur-1.c @@ -227,7 +227,7 @@ enum piglit_result piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-kwin-blur-2.c b/tests/shaders/glsl-kwin-blur-2.c index 04cda317c..7c57e626d 100644 --- a/tests/shaders/glsl-kwin-blur-2.c +++ b/tests/shaders/glsl-kwin-blur-2.c @@ -258,7 +258,7 @@ void piglit_init(int argc, char **argv) { int value; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-light-model.c b/tests/shaders/glsl-light-model.c index 928e6d61e..c785a3e71 100644 --- a/tests/shaders/glsl-light-model.c +++ b/tests/shaders/glsl-light-model.c @@ -66,7 +66,7 @@ piglit_init(int argc, char **argv) piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-link-bug30552.c b/tests/shaders/glsl-link-bug30552.c index ee08803e6..0d9ad6266 100644 --- a/tests/shaders/glsl-link-bug30552.c +++ b/tests/shaders/glsl-link-bug30552.c @@ -44,7 +44,7 @@ void piglit_init(int argc, char **argv) GLint prog; GLboolean ok; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-link-bug38015.c b/tests/shaders/glsl-link-bug38015.c index e34d59038..ca31e6dad 100644 --- a/tests/shaders/glsl-link-bug38015.c +++ b/tests/shaders/glsl-link-bug38015.c @@ -56,7 +56,7 @@ void piglit_init(int argc, char **argv) GLint prog; const char *fs_text_ptr = fs_text; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-link-empty-prog-01.c b/tests/shaders/glsl-link-empty-prog-01.c index 1c44884e9..de8ffce94 100644 --- a/tests/shaders/glsl-link-empty-prog-01.c +++ b/tests/shaders/glsl-link-empty-prog-01.c @@ -45,7 +45,7 @@ enum piglit_result piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-link-empty-prog-02.c b/tests/shaders/glsl-link-empty-prog-02.c index d9a1789eb..8ab049040 100644 --- a/tests/shaders/glsl-link-empty-prog-02.c +++ b/tests/shaders/glsl-link-empty-prog-02.c @@ -88,7 +88,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-link-initializer-03.c b/tests/shaders/glsl-link-initializer-03.c index e43548c25..4ddd05bdc 100644 --- a/tests/shaders/glsl-link-initializer-03.c +++ b/tests/shaders/glsl-link-initializer-03.c @@ -54,7 +54,7 @@ void piglit_init(int argc, char **argv) GLint prog_c; GLint prog_d; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-link-test.c b/tests/shaders/glsl-link-test.c index a614c7f5e..909d3b21e 100644 --- a/tests/shaders/glsl-link-test.c +++ b/tests/shaders/glsl-link-test.c @@ -47,7 +47,7 @@ void piglit_init(int argc, char **argv) unsigned i; const char *invalid_file = NULL; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } @@ -83,7 +83,7 @@ void piglit_init(int argc, char **argv) target = GL_VERTEX_SHADER; } else if (strcmp(argv[i] + len - 5, ".geom") == 0) { target = GL_GEOMETRY_SHADER; - if (!GLEW_VERSION_3_2 && !GLEW_ARB_geometry_shader4) { + if (piglit_get_gl_version() < 32 && !GLEW_ARB_geometry_shader4) { printf("Requires geometry shaders.\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-lod-bias.c b/tests/shaders/glsl-lod-bias.c index 9de328a87..96dac05b2 100644 --- a/tests/shaders/glsl-lod-bias.c +++ b/tests/shaders/glsl-lod-bias.c @@ -79,7 +79,7 @@ static const float pink[4] = {1.0, 0.0, 1.0, 0.0}; /* Note: 0.0 alpha */ void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-mat-attribute.c b/tests/shaders/glsl-mat-attribute.c index 16634ca4d..07d5dbb94 100644 --- a/tests/shaders/glsl-mat-attribute.c +++ b/tests/shaders/glsl-mat-attribute.c @@ -198,7 +198,7 @@ void piglit_init(int argc, char **argv) unsigned i; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-max-varyings.c b/tests/shaders/glsl-max-varyings.c index 4592c87ee..40b232f9a 100644 --- a/tests/shaders/glsl-max-varyings.c +++ b/tests/shaders/glsl-max-varyings.c @@ -258,7 +258,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-max-vertex-attrib.c b/tests/shaders/glsl-max-vertex-attrib.c index 666c2a1e4..e247a13ce 100644 --- a/tests/shaders/glsl-max-vertex-attrib.c +++ b/tests/shaders/glsl-max-vertex-attrib.c @@ -150,7 +150,7 @@ enum piglit_result piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); exit(1); diff --git a/tests/shaders/glsl-novertexdata.c b/tests/shaders/glsl-novertexdata.c index b73476446..16a524786 100644 --- a/tests/shaders/glsl-novertexdata.c +++ b/tests/shaders/glsl-novertexdata.c @@ -102,7 +102,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); exit(1); diff --git a/tests/shaders/glsl-orangebook-ch06-bump.c b/tests/shaders/glsl-orangebook-ch06-bump.c index e712286c7..f47a36e02 100644 --- a/tests/shaders/glsl-orangebook-ch06-bump.c +++ b/tests/shaders/glsl-orangebook-ch06-bump.c @@ -101,7 +101,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-preprocessor-comments.c b/tests/shaders/glsl-preprocessor-comments.c index 9684576cf..37fbb1c5b 100644 --- a/tests/shaders/glsl-preprocessor-comments.c +++ b/tests/shaders/glsl-preprocessor-comments.c @@ -66,7 +66,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-routing.c b/tests/shaders/glsl-routing.c index 6194f6028..52d441053 100644 --- a/tests/shaders/glsl-routing.c +++ b/tests/shaders/glsl-routing.c @@ -318,7 +318,7 @@ void piglit_init(int argc, char **argv) { piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-sin.c b/tests/shaders/glsl-sin.c index 4c760fcb8..76cbed119 100644 --- a/tests/shaders/glsl-sin.c +++ b/tests/shaders/glsl-sin.c @@ -109,7 +109,7 @@ enum piglit_result piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-uniform-update.c b/tests/shaders/glsl-uniform-update.c index 18bdad732..1a0a853a1 100644 --- a/tests/shaders/glsl-uniform-update.c +++ b/tests/shaders/glsl-uniform-update.c @@ -73,7 +73,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-unused-varying.c b/tests/shaders/glsl-unused-varying.c index 93f41292a..2a7456006 100644 --- a/tests/shaders/glsl-unused-varying.c +++ b/tests/shaders/glsl-unused-varying.c @@ -75,7 +75,7 @@ void piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-useprogram-displaylist.c b/tests/shaders/glsl-useprogram-displaylist.c index 616c28536..56fb0e9d6 100644 --- a/tests/shaders/glsl-useprogram-displaylist.c +++ b/tests/shaders/glsl-useprogram-displaylist.c @@ -54,7 +54,7 @@ piglit_init(int argc, char **argv) GLint fsg; GLint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-arrays.c b/tests/shaders/glsl-vs-arrays.c index c587e096a..972e3a235 100644 --- a/tests/shaders/glsl-vs-arrays.c +++ b/tests/shaders/glsl-vs-arrays.c @@ -62,7 +62,7 @@ void piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-functions.c b/tests/shaders/glsl-vs-functions.c index 97a40a514..994101098 100644 --- a/tests/shaders/glsl-vs-functions.c +++ b/tests/shaders/glsl-vs-functions.c @@ -64,7 +64,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-if-bool.c b/tests/shaders/glsl-vs-if-bool.c index 0b512f655..289b04f8a 100644 --- a/tests/shaders/glsl-vs-if-bool.c +++ b/tests/shaders/glsl-vs-if-bool.c @@ -65,7 +65,7 @@ void piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-loop-nested.c b/tests/shaders/glsl-vs-loop-nested.c index 2d59c6183..1c557c2ba 100644 --- a/tests/shaders/glsl-vs-loop-nested.c +++ b/tests/shaders/glsl-vs-loop-nested.c @@ -103,7 +103,7 @@ piglit_init(int argc, char **argv) */ piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-loop.c b/tests/shaders/glsl-vs-loop.c index 67a625e06..86ad11bc0 100644 --- a/tests/shaders/glsl-vs-loop.c +++ b/tests/shaders/glsl-vs-loop.c @@ -102,7 +102,7 @@ piglit_init(int argc, char **argv) */ piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-mov-after-deref.c b/tests/shaders/glsl-vs-mov-after-deref.c index 447b70c75..968ce318d 100644 --- a/tests/shaders/glsl-vs-mov-after-deref.c +++ b/tests/shaders/glsl-vs-mov-after-deref.c @@ -62,7 +62,7 @@ void piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-mvp-statechange.c b/tests/shaders/glsl-vs-mvp-statechange.c index 6f3a7f9e7..54bc02eaf 100644 --- a/tests/shaders/glsl-vs-mvp-statechange.c +++ b/tests/shaders/glsl-vs-mvp-statechange.c @@ -72,7 +72,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-normalscale.c b/tests/shaders/glsl-vs-normalscale.c index 30b0031c8..d8e1b444b 100644 --- a/tests/shaders/glsl-vs-normalscale.c +++ b/tests/shaders/glsl-vs-normalscale.c @@ -67,7 +67,7 @@ void piglit_init(int argc, char **argv) GLint vs, fs; int loc; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-point-size.c b/tests/shaders/glsl-vs-point-size.c index 5b7fc1d0b..c8d9f066b 100644 --- a/tests/shaders/glsl-vs-point-size.c +++ b/tests/shaders/glsl-vs-point-size.c @@ -85,7 +85,7 @@ piglit_init(int argc, char **argv) GLint vs; GLint point_size_range[2]; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-raytrace-bug26691.c b/tests/shaders/glsl-vs-raytrace-bug26691.c index 22fd9905f..2e919a350 100644 --- a/tests/shaders/glsl-vs-raytrace-bug26691.c +++ b/tests/shaders/glsl-vs-raytrace-bug26691.c @@ -271,7 +271,7 @@ piglit_init(int argc, char **argv) glDisable(GL_DEPTH_TEST); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-sqrt-zero.c b/tests/shaders/glsl-vs-sqrt-zero.c index 2794c1416..85f2efc4f 100644 --- a/tests/shaders/glsl-vs-sqrt-zero.c +++ b/tests/shaders/glsl-vs-sqrt-zero.c @@ -60,7 +60,7 @@ piglit_init(int argc, char **argv) { GLint vs, fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-statechange-1.c b/tests/shaders/glsl-vs-statechange-1.c index 59f547371..599b8524c 100644 --- a/tests/shaders/glsl-vs-statechange-1.c +++ b/tests/shaders/glsl-vs-statechange-1.c @@ -77,7 +77,7 @@ piglit_init(int argc, char **argv) { GLint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-texturematrix-1.c b/tests/shaders/glsl-vs-texturematrix-1.c index d46c63e60..eb30590b4 100644 --- a/tests/shaders/glsl-vs-texturematrix-1.c +++ b/tests/shaders/glsl-vs-texturematrix-1.c @@ -82,7 +82,7 @@ void piglit_init(int argc, char **argv) GLint vs, fs; int loc; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-texturematrix-2.c b/tests/shaders/glsl-vs-texturematrix-2.c index 1efe26143..56b734bd1 100644 --- a/tests/shaders/glsl-vs-texturematrix-2.c +++ b/tests/shaders/glsl-vs-texturematrix-2.c @@ -84,7 +84,7 @@ void piglit_init(int argc, char **argv) GLint vs, fs; int loc; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/glsl-vs-user-varying-ff.c b/tests/shaders/glsl-vs-user-varying-ff.c index 1fdb30d6f..1448d160b 100644 --- a/tests/shaders/glsl-vs-user-varying-ff.c +++ b/tests/shaders/glsl-vs-user-varying-ff.c @@ -69,7 +69,7 @@ piglit_init(int argc, char **argv) { GLuint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/link-mismatch-layout-01.c b/tests/shaders/link-mismatch-layout-01.c index ec0de6de8..e1d0f8fd9 100644 --- a/tests/shaders/link-mismatch-layout-01.c +++ b/tests/shaders/link-mismatch-layout-01.c @@ -66,7 +66,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLuint fs[2]; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/link-mismatch-layout-02.c b/tests/shaders/link-mismatch-layout-02.c index 063646dba..ced3a1686 100644 --- a/tests/shaders/link-mismatch-layout-02.c +++ b/tests/shaders/link-mismatch-layout-02.c @@ -66,7 +66,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLuint fs[2]; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/link-mismatch-layout-03.c b/tests/shaders/link-mismatch-layout-03.c index 77d2c823f..ea47ed680 100644 --- a/tests/shaders/link-mismatch-layout-03.c +++ b/tests/shaders/link-mismatch-layout-03.c @@ -64,7 +64,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLuint fs[2]; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/link-unresolved-function.c b/tests/shaders/link-unresolved-function.c index a255b287e..62ffb5d65 100644 --- a/tests/shaders/link-unresolved-function.c +++ b/tests/shaders/link-unresolved-function.c @@ -49,7 +49,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLuint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/sso-simple.c b/tests/shaders/sso-simple.c index 99a77f946..aa6397c21 100644 --- a/tests/shaders/sso-simple.c +++ b/tests/shaders/sso-simple.c @@ -106,7 +106,7 @@ piglit_init(int argc, char **argv) GLuint vs; GLuint fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/sso-uniforms-01.c b/tests/shaders/sso-uniforms-01.c index 100390bfe..23c86da42 100644 --- a/tests/shaders/sso-uniforms-01.c +++ b/tests/shaders/sso-uniforms-01.c @@ -79,7 +79,7 @@ piglit_init(int argc, char **argv) { GLint loc; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/sso-uniforms-02.c b/tests/shaders/sso-uniforms-02.c index d335a2289..9157eca75 100644 --- a/tests/shaders/sso-uniforms-02.c +++ b/tests/shaders/sso-uniforms-02.c @@ -78,7 +78,7 @@ piglit_init(int argc, char **argv) { GLint loc; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/sso-user-varying-01.c b/tests/shaders/sso-user-varying-01.c index 29c355f6e..c8203e32f 100644 --- a/tests/shaders/sso-user-varying-01.c +++ b/tests/shaders/sso-user-varying-01.c @@ -84,7 +84,7 @@ piglit_init(int argc, char **argv) GLuint vs; GLuint fs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/sso-user-varying-02.c b/tests/shaders/sso-user-varying-02.c index abdc90bba..d1a9a9d52 100644 --- a/tests/shaders/sso-user-varying-02.c +++ b/tests/shaders/sso-user-varying-02.c @@ -82,7 +82,7 @@ piglit_init(int argc, char **argv) { GLboolean try_to_render; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/trinity-fp1.c b/tests/shaders/trinity-fp1.c index 88d009d73..4180d0c3c 100644 --- a/tests/shaders/trinity-fp1.c +++ b/tests/shaders/trinity-fp1.c @@ -227,7 +227,7 @@ piglit_init(int argc, char **argv) "END"; - if (!GLEW_VERSION_1_3) { + if (piglit_get_gl_version() < 13) { printf("Requires OpenGL 1.3\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useprogram-flushverts-1.c b/tests/shaders/useprogram-flushverts-1.c index b4ed7c746..b7bd0bfd1 100644 --- a/tests/shaders/useprogram-flushverts-1.c +++ b/tests/shaders/useprogram-flushverts-1.c @@ -111,7 +111,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = vec4(0.0, 0.0, 1.0, 0.0);\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useprogram-flushverts-2.c b/tests/shaders/useprogram-flushverts-2.c index 7ed71af95..984b2eb87 100644 --- a/tests/shaders/useprogram-flushverts-2.c +++ b/tests/shaders/useprogram-flushverts-2.c @@ -117,7 +117,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = vec4(0.0, 0.0, 1.0, 0.0);\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useprogram-inside-begin.c b/tests/shaders/useprogram-inside-begin.c index f9bc974d7..ac936fab8 100644 --- a/tests/shaders/useprogram-inside-begin.c +++ b/tests/shaders/useprogram-inside-begin.c @@ -53,7 +53,7 @@ piglit_init(int argc, char **argv) GLint vs; GLenum err; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useprogram-refcount-1.c b/tests/shaders/useprogram-refcount-1.c index a52d1f192..daf96ee3e 100644 --- a/tests/shaders/useprogram-refcount-1.c +++ b/tests/shaders/useprogram-refcount-1.c @@ -80,7 +80,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useshaderprogram-bad-program.c b/tests/shaders/useshaderprogram-bad-program.c index 4318f6be6..512c85129 100644 --- a/tests/shaders/useshaderprogram-bad-program.c +++ b/tests/shaders/useshaderprogram-bad-program.c @@ -54,7 +54,7 @@ piglit_init(int argc, char **argv) GLuint prog; GLuint vs; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useshaderprogram-bad-type.c b/tests/shaders/useshaderprogram-bad-type.c index 150406a72..55a5af329 100644 --- a/tests/shaders/useshaderprogram-bad-type.c +++ b/tests/shaders/useshaderprogram-bad-type.c @@ -79,7 +79,7 @@ piglit_init(int argc, char **argv) ? 0 : GL_INVALID_ENUM; GLboolean pass; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/useshaderprogram-flushverts-1.c b/tests/shaders/useshaderprogram-flushverts-1.c index 99410db25..58e418ea3 100644 --- a/tests/shaders/useshaderprogram-flushverts-1.c +++ b/tests/shaders/useshaderprogram-flushverts-1.c @@ -113,7 +113,7 @@ piglit_init(int argc, char **argv) " gl_FragColor = vec4(0.0, 0.0, 1.0, 0.0);\n" "}\n"; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/vp-ignore-input.c b/tests/shaders/vp-ignore-input.c index d32e25a3b..2e0caa021 100644 --- a/tests/shaders/vp-ignore-input.c +++ b/tests/shaders/vp-ignore-input.c @@ -71,7 +71,7 @@ piglit_init(int argc, char **argv) glClearColor(0.2, 0.2, 0.2, 1.0); - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } diff --git a/tests/shaders/vpfp-generic.cpp b/tests/shaders/vpfp-generic.cpp index 8979d4201..58404d44a 100644 --- a/tests/shaders/vpfp-generic.cpp +++ b/tests/shaders/vpfp-generic.cpp @@ -403,7 +403,7 @@ extern "C" void piglit_init(int argc, char **argv) fp = tests.fragment_program_code.c_str(); - if (!GLEW_VERSION_1_3) { + if (piglit_get_gl_version() < 13) { printf("Requires OpenGL 1.3\n"); piglit_report_result(PIGLIT_SKIP); exit(1); |