aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2013-01-06 05:37:38 +0100
committerMarek Olšák <maraeo@gmail.com>2013-01-15 17:22:51 +0100
commit67f5ae3cfdb511259dc0bf580e37efb7bb4bcc42 (patch)
tree79ac3a7e46f9ba327a0039e937b39ca9f22c83ee
parentfb8977b0e53ef2233e4936b2ade1b66d335732d0 (diff)
downloadpiglit-67f5ae3cfdb511259dc0bf580e37efb7bb4bcc42.tar.gz
MSAA tests: only require GL2.1 with ARB_fbo and ARB_vao
Reviewed-by: Paul Berry <stereotype441@gmail.com>
-rw-r--r--tests/spec/ext_framebuffer_multisample/accuracy.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/alpha-to-coverage-no-draw-buffer-zero.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/alpha-to-one-msaa-disabled.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/alpha-to-one-single-sample-buffer.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/bitmap.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/blit-flipped.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/blit-mismatched-formats.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/blit-mismatched-samples.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/blit-mismatched-sizes.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/clear.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/clip-and-scissor-blit.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-coverage.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-one.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/enable-flag.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/formats.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/interpolation.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/line-smooth.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/multisample-blit.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/no-color.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/point-smooth.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/polygon-smooth.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/polygon-stipple.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/sample-alpha-to-coverage.cpp6
-rw-r--r--tests/spec/ext_framebuffer_multisample/sample-alpha-to-one.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/sample-coverage.cpp5
-rw-r--r--tests/spec/ext_framebuffer_multisample/turn-on-off.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/unaligned-blit.cpp4
-rw-r--r--tests/spec/ext_framebuffer_multisample/upsample.cpp5
28 files changed, 92 insertions, 33 deletions
diff --git a/tests/spec/ext_framebuffer_multisample/accuracy.cpp b/tests/spec/ext_framebuffer_multisample/accuracy.cpp
index 126a0907..3b2205bb 100644
--- a/tests/spec/ext_framebuffer_multisample/accuracy.cpp
+++ b/tests/spec/ext_framebuffer_multisample/accuracy.cpp
@@ -103,8 +103,9 @@ piglit_init(int argc, char **argv)
}
}
- piglit_require_gl_version(30);
- piglit_require_GLSL_version(130);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
glGetIntegerv(GL_MAX_SAMPLES, &max_samples);
diff --git a/tests/spec/ext_framebuffer_multisample/alpha-to-coverage-no-draw-buffer-zero.cpp b/tests/spec/ext_framebuffer_multisample/alpha-to-coverage-no-draw-buffer-zero.cpp
index 30ff8114..cad6bfc0 100644
--- a/tests/spec/ext_framebuffer_multisample/alpha-to-coverage-no-draw-buffer-zero.cpp
+++ b/tests/spec/ext_framebuffer_multisample/alpha-to-coverage-no-draw-buffer-zero.cpp
@@ -81,7 +81,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
int pattern_width = piglit_width / 2;
int pattern_height = piglit_height / num_attachments;
diff --git a/tests/spec/ext_framebuffer_multisample/alpha-to-one-msaa-disabled.cpp b/tests/spec/ext_framebuffer_multisample/alpha-to-one-msaa-disabled.cpp
index 80c159fa..043f9b6f 100644
--- a/tests/spec/ext_framebuffer_multisample/alpha-to-one-msaa-disabled.cpp
+++ b/tests/spec/ext_framebuffer_multisample/alpha-to-one-msaa-disabled.cpp
@@ -71,7 +71,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
int pattern_width = piglit_width / 2;
int pattern_height = piglit_height / num_attachments;
diff --git a/tests/spec/ext_framebuffer_multisample/alpha-to-one-single-sample-buffer.cpp b/tests/spec/ext_framebuffer_multisample/alpha-to-one-single-sample-buffer.cpp
index f297cea9..83e75ad0 100644
--- a/tests/spec/ext_framebuffer_multisample/alpha-to-one-single-sample-buffer.cpp
+++ b/tests/spec/ext_framebuffer_multisample/alpha-to-one-single-sample-buffer.cpp
@@ -56,7 +56,9 @@ piglit_init(int argc, char **argv)
/* For single sample buffer */
const int samples = 0;
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
int pattern_width = piglit_width / 2;
int pattern_height = piglit_height / num_attachments;
diff --git a/tests/spec/ext_framebuffer_multisample/bitmap.cpp b/tests/spec/ext_framebuffer_multisample/bitmap.cpp
index 7a82e55c..ec49f013 100644
--- a/tests/spec/ext_framebuffer_multisample/bitmap.cpp
+++ b/tests/spec/ext_framebuffer_multisample/bitmap.cpp
@@ -148,7 +148,10 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
+
piglit_ortho_projection(pattern_width, pattern_height, GL_TRUE);
/* Skip the test if num_samples > GL_MAX_SAMPLES */
diff --git a/tests/spec/ext_framebuffer_multisample/blit-flipped.cpp b/tests/spec/ext_framebuffer_multisample/blit-flipped.cpp
index 26f918fa..1f2cf7f3 100644
--- a/tests/spec/ext_framebuffer_multisample/blit-flipped.cpp
+++ b/tests/spec/ext_framebuffer_multisample/blit-flipped.cpp
@@ -102,7 +102,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/blit-mismatched-formats.cpp b/tests/spec/ext_framebuffer_multisample/blit-mismatched-formats.cpp
index 5162de1f..017e5f0c 100644
--- a/tests/spec/ext_framebuffer_multisample/blit-mismatched-formats.cpp
+++ b/tests/spec/ext_framebuffer_multisample/blit-mismatched-formats.cpp
@@ -92,7 +92,9 @@ piglit_display()
void
piglit_init(int argc, char **argv)
{
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Passing sample count = 1 will create the FBOs with minimum supported
* sample count. Both FBOs are created with GL_RGBA format by default.
diff --git a/tests/spec/ext_framebuffer_multisample/blit-mismatched-samples.cpp b/tests/spec/ext_framebuffer_multisample/blit-mismatched-samples.cpp
index 31547205..dfbfa8ad 100644
--- a/tests/spec/ext_framebuffer_multisample/blit-mismatched-samples.cpp
+++ b/tests/spec/ext_framebuffer_multisample/blit-mismatched-samples.cpp
@@ -70,7 +70,10 @@ void
piglit_init(int argc, char **argv)
{
GLint samples, max_samples;
- piglit_require_gl_version(30);
+
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* OpenGL driver is supposed to round up the specified sample count to
* the next available sample count. So, this will create the FBO with
diff --git a/tests/spec/ext_framebuffer_multisample/blit-mismatched-sizes.cpp b/tests/spec/ext_framebuffer_multisample/blit-mismatched-sizes.cpp
index 02b13058..22ea0dab 100644
--- a/tests/spec/ext_framebuffer_multisample/blit-mismatched-sizes.cpp
+++ b/tests/spec/ext_framebuffer_multisample/blit-mismatched-sizes.cpp
@@ -71,7 +71,9 @@ piglit_display()
void
piglit_init(int argc, char **argv)
{
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Passing sample count = 1 will create the FBOs with minimum supported
* sample count.
diff --git a/tests/spec/ext_framebuffer_multisample/clear.cpp b/tests/spec/ext_framebuffer_multisample/clear.cpp
index 10388129..2ba701e3 100644
--- a/tests/spec/ext_framebuffer_multisample/clear.cpp
+++ b/tests/spec/ext_framebuffer_multisample/clear.cpp
@@ -117,7 +117,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/clip-and-scissor-blit.cpp b/tests/spec/ext_framebuffer_multisample/clip-and-scissor-blit.cpp
index 4ad4c2d4..fc4310ac 100644
--- a/tests/spec/ext_framebuffer_multisample/clip-and-scissor-blit.cpp
+++ b/tests/spec/ext_framebuffer_multisample/clip-and-scissor-blit.cpp
@@ -327,8 +327,9 @@ print_usage_and_exit(char *prog_name)
extern "C" void
piglit_init(int argc, char **argv)
{
- piglit_require_gl_version(30);
- piglit_require_GLSL_version(130);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
if (argc < 3)
print_usage_and_exit(argv[0]);
diff --git a/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-coverage.cpp b/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-coverage.cpp
index aab156f4..45876306 100644
--- a/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-coverage.cpp
+++ b/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-coverage.cpp
@@ -79,7 +79,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
int pattern_width = piglit_width / 2;
int pattern_height = piglit_height / num_attachments;
diff --git a/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-one.cpp b/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-one.cpp
index 5256fc9a..bd574db1 100644
--- a/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-one.cpp
+++ b/tests/spec/ext_framebuffer_multisample/draw-buffers-alpha-to-one.cpp
@@ -100,7 +100,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
int pattern_width = piglit_width / 2;
int pattern_height = piglit_height / num_attachments;
diff --git a/tests/spec/ext_framebuffer_multisample/enable-flag.cpp b/tests/spec/ext_framebuffer_multisample/enable-flag.cpp
index edf0d9ad..05a8064a 100644
--- a/tests/spec/ext_framebuffer_multisample/enable-flag.cpp
+++ b/tests/spec/ext_framebuffer_multisample/enable-flag.cpp
@@ -84,7 +84,9 @@ Triangles triangles;
extern "C" void
piglit_init(int argc, char **argv)
{
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
GLint max_samples;
glGetIntegerv(GL_MAX_SAMPLES, &max_samples);
diff --git a/tests/spec/ext_framebuffer_multisample/formats.cpp b/tests/spec/ext_framebuffer_multisample/formats.cpp
index 8ef6c7f3..7d739491 100644
--- a/tests/spec/ext_framebuffer_multisample/formats.cpp
+++ b/tests/spec/ext_framebuffer_multisample/formats.cpp
@@ -581,7 +581,9 @@ piglit_init(int argc, char **argv)
if (argc == 3)
test_set = fbo_lookup_test_set(argv[2]);
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/interpolation.cpp b/tests/spec/ext_framebuffer_multisample/interpolation.cpp
index c54491b9..559487d2 100644
--- a/tests/spec/ext_framebuffer_multisample/interpolation.cpp
+++ b/tests/spec/ext_framebuffer_multisample/interpolation.cpp
@@ -359,7 +359,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/line-smooth.cpp b/tests/spec/ext_framebuffer_multisample/line-smooth.cpp
index 4fe9554e..2fb1b68b 100644
--- a/tests/spec/ext_framebuffer_multisample/line-smooth.cpp
+++ b/tests/spec/ext_framebuffer_multisample/line-smooth.cpp
@@ -81,7 +81,10 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
+
glClear(GL_COLOR_BUFFER_BIT);
/* Skip the test if num_samples > GL_MAX_SAMPLES */
diff --git a/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp b/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp
index a6935624..ed547984 100644
--- a/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp
+++ b/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp
@@ -79,8 +79,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
- piglit_require_GLSL_version(130);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/no-color.cpp b/tests/spec/ext_framebuffer_multisample/no-color.cpp
index 7ebdcbdd..df796fc9 100644
--- a/tests/spec/ext_framebuffer_multisample/no-color.cpp
+++ b/tests/spec/ext_framebuffer_multisample/no-color.cpp
@@ -155,8 +155,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
- piglit_require_GLSL_version(130);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/point-smooth.cpp b/tests/spec/ext_framebuffer_multisample/point-smooth.cpp
index a596b80c..21643890 100644
--- a/tests/spec/ext_framebuffer_multisample/point-smooth.cpp
+++ b/tests/spec/ext_framebuffer_multisample/point-smooth.cpp
@@ -81,7 +81,10 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
+
glClear (GL_COLOR_BUFFER_BIT);
/* Skip the test if num_samples > GL_MAX_SAMPLES */
diff --git a/tests/spec/ext_framebuffer_multisample/polygon-smooth.cpp b/tests/spec/ext_framebuffer_multisample/polygon-smooth.cpp
index b8b018bf..fe197faa 100644
--- a/tests/spec/ext_framebuffer_multisample/polygon-smooth.cpp
+++ b/tests/spec/ext_framebuffer_multisample/polygon-smooth.cpp
@@ -81,7 +81,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/polygon-stipple.cpp b/tests/spec/ext_framebuffer_multisample/polygon-stipple.cpp
index 3394695f..947829f7 100644
--- a/tests/spec/ext_framebuffer_multisample/polygon-stipple.cpp
+++ b/tests/spec/ext_framebuffer_multisample/polygon-stipple.cpp
@@ -224,7 +224,10 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
+
piglit_ortho_projection(pattern_width, pattern_height, GL_TRUE);
/* Skip the test if num_samples > GL_MAX_SAMPLES */
diff --git a/tests/spec/ext_framebuffer_multisample/sample-alpha-to-coverage.cpp b/tests/spec/ext_framebuffer_multisample/sample-alpha-to-coverage.cpp
index a0b4377a..3301c3af 100644
--- a/tests/spec/ext_framebuffer_multisample/sample-alpha-to-coverage.cpp
+++ b/tests/spec/ext_framebuffer_multisample/sample-alpha-to-coverage.cpp
@@ -71,7 +71,11 @@ piglit_init(int argc, char **argv)
{
const int num_attachments = 1;
int samples;
- piglit_require_gl_version(30);
+
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
+
if (argc < 3)
print_usage_and_exit(argv[0]);
{
diff --git a/tests/spec/ext_framebuffer_multisample/sample-alpha-to-one.cpp b/tests/spec/ext_framebuffer_multisample/sample-alpha-to-one.cpp
index 100e2881..9ccc3941 100644
--- a/tests/spec/ext_framebuffer_multisample/sample-alpha-to-one.cpp
+++ b/tests/spec/ext_framebuffer_multisample/sample-alpha-to-one.cpp
@@ -71,7 +71,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
int pattern_width = piglit_width / 2;
int pattern_height = piglit_height / num_attachments;
diff --git a/tests/spec/ext_framebuffer_multisample/sample-coverage.cpp b/tests/spec/ext_framebuffer_multisample/sample-coverage.cpp
index d0ce4a08..b0d5ebd2 100644
--- a/tests/spec/ext_framebuffer_multisample/sample-coverage.cpp
+++ b/tests/spec/ext_framebuffer_multisample/sample-coverage.cpp
@@ -369,7 +369,10 @@ piglit_init(int argc, char **argv)
coverage_invert = false;
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
+
piglit_ortho_projection(pattern_width, pattern_height, GL_TRUE);
/* Skip the test if samples > GL_MAX_SAMPLES */
diff --git a/tests/spec/ext_framebuffer_multisample/turn-on-off.cpp b/tests/spec/ext_framebuffer_multisample/turn-on-off.cpp
index 8d5ed9e9..4a2b558e 100644
--- a/tests/spec/ext_framebuffer_multisample/turn-on-off.cpp
+++ b/tests/spec/ext_framebuffer_multisample/turn-on-off.cpp
@@ -136,7 +136,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
glGetIntegerv(GL_MAX_SAMPLES, &max_samples);
diff --git a/tests/spec/ext_framebuffer_multisample/unaligned-blit.cpp b/tests/spec/ext_framebuffer_multisample/unaligned-blit.cpp
index ad4c944f..d322799c 100644
--- a/tests/spec/ext_framebuffer_multisample/unaligned-blit.cpp
+++ b/tests/spec/ext_framebuffer_multisample/unaligned-blit.cpp
@@ -125,7 +125,9 @@ piglit_init(int argc, char **argv)
if (endptr != argv[1] + strlen(argv[1]))
print_usage_and_exit(argv[0]);
- piglit_require_gl_version(30);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;
diff --git a/tests/spec/ext_framebuffer_multisample/upsample.cpp b/tests/spec/ext_framebuffer_multisample/upsample.cpp
index 48f436b2..4a01e7ed 100644
--- a/tests/spec/ext_framebuffer_multisample/upsample.cpp
+++ b/tests/spec/ext_framebuffer_multisample/upsample.cpp
@@ -94,8 +94,9 @@ piglit_init(int argc, char **argv)
print_usage_and_exit(argv[0]);
}
- piglit_require_gl_version(30);
- piglit_require_GLSL_version(130);
+ piglit_require_gl_version(21);
+ piglit_require_extension("GL_ARB_framebuffer_object");
+ piglit_require_extension("GL_ARB_vertex_array_object");
/* Skip the test if num_samples > GL_MAX_SAMPLES */
GLint max_samples;