summaryrefslogtreecommitdiff
path: root/tests/egl/egl-util.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-13 20:29:51 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-14 09:29:52 -0400
commitfe6b048afbf76904a4b265c7019fe75476d618af (patch)
tree93a4509b668d2c54ea61ecf8eea36c25db5599fe /tests/egl/egl-util.h
parent2ccc82fc747ed5516d63112e424cc8d356c66773 (diff)
Add the start of an EGL test suite and a EGL_NOK_swap_region test
Diffstat (limited to 'tests/egl/egl-util.h')
-rw-r--r--tests/egl/egl-util.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/egl/egl-util.h b/tests/egl/egl-util.h
new file mode 100644
index 000000000..870ee8a0a
--- /dev/null
+++ b/tests/egl/egl-util.h
@@ -0,0 +1,18 @@
+#ifndef EGL_UTIL_H
+#define EGL_UTIL_H
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/keysym.h>
+#include <GL/gl.h>
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
+
+struct egl_test {
+ const char **extensions;
+ enum piglit_result (*draw)(EGLDisplay egl_dpy, EGLSurface surf);
+};
+
+int egl_run(const struct egl_test *test, int argc, char *argv[]);
+
+#endif