aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-10 16:07:44 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 12:44:39 -0800
commit48940da0e035a986a8d490dab795a2bff15d4486 (patch)
treeb735a12b79c4e2612cb9bb2d45586887e152b994
parent0e7b4203a034e56ba8fec0d298daa34e10d51eb2 (diff)
downloadpiglit-48940da0e035a986a8d490dab795a2bff15d4486.tar.gz
get-renderbuffer-internalformat: Skip testing unsupported enums.
With the change to ban deprecated-format SNORM renderbuffers in Mesa, these now throw GL_INVALID_ENUM. Catch it and skip those subtests. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59072 Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--tests/spec/arb_framebuffer_object/get-renderbuffer-internalformat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/spec/arb_framebuffer_object/get-renderbuffer-internalformat.c b/tests/spec/arb_framebuffer_object/get-renderbuffer-internalformat.c
index 88fb65c2..5dca3921 100644
--- a/tests/spec/arb_framebuffer_object/get-renderbuffer-internalformat.c
+++ b/tests/spec/arb_framebuffer_object/get-renderbuffer-internalformat.c
@@ -66,6 +66,11 @@ test_format(const struct format_desc *format)
glGenRenderbuffers(1, &rb);
glBindRenderbuffer(GL_RENDERBUFFER, rb);
glRenderbufferStorage(GL_RENDERBUFFER, format->internalformat, 1, 1);
+ if (glGetError() == GL_INVALID_ENUM) {
+ printf("SKIP\n");
+ return PIGLIT_SKIP;
+ }
+
glGetRenderbufferParameteriv(GL_RENDERBUFFER,
GL_RENDERBUFFER_INTERNAL_FORMAT,
&internalformat);