Skip to content

Commit

Permalink
tests: Only run buffer-count test on Mesa >= 10.1
Browse files Browse the repository at this point in the history
Comment #2 in the bug report says Mesa 10.0 branch does not have the
fix, and indeed buffer-count test fails on Mesa 10.0.1. Fix the test to
require Mesa 10.1 or later.

Now I correctly get:
	mesa version too old (OpenGL ES 3.0 Mesa 10.0.1 (git-12484d2))

https://bugs.freedesktop.org/show_bug.cgi?id=72835

Signed-off-by: Pekka Paalanen <[email protected]>
  • Loading branch information
ppaalanen authored and krh committed Jan 9, 2014
1 parent 2fce480 commit ca6bd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/buffer-count-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ init_egl(struct test_data *test_data)
test_data->egl_surface, test_data->egl_ctx);
assert(ret == EGL_TRUE);

/* This test is specific to mesa 10.0 and later, which is the
/* This test is specific to mesa 10.1 and later, which is the
* first release that doesn't accidentally triple-buffer. */
str = (const char *) glGetString(GL_VERSION);
mesa = strstr(str, "Mesa ");
if (mesa == NULL)
skip("unknown EGL implementation (%s)\n", str);
if (sscanf(mesa + 5, "%d.%d", &major, &minor) != 2)
skip("unrecognized mesa version (%s)\n", str);
if (major < 10)
if (major < 10 || (major == 10 && minor < 1))
skip("mesa version too old (%s)\n", str);

}
Expand Down

0 comments on commit ca6bd74

Please sign in to comment.