diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-05-14 11:28:32 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-05-14 14:51:34 -0400 |
commit | fc24a541cc0d242e8d1e641b3015c4b0ceb8ffec (patch) | |
tree | cdfc8b7fbdb9056dd908ce310fd0479d3e3c106c /tests/egl/egl-util.h | |
parent | fe6b048afbf76904a4b265c7019fe75476d618af (diff) |
Add test for EGL_NOK_texture_from_pixmap
Generalize the egl-util code a bit as well.
Diffstat (limited to 'tests/egl/egl-util.h')
-rw-r--r-- | tests/egl/egl-util.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/egl/egl-util.h b/tests/egl/egl-util.h index 870ee8a0a..f44a79e49 100644 --- a/tests/egl/egl-util.h +++ b/tests/egl/egl-util.h @@ -8,11 +8,28 @@ #include <EGL/egl.h> #include <EGL/eglext.h> +struct egl_state { + Display *dpy; + Window win; + EGLDisplay egl_dpy; + EGLConfig cfg; + EGLContext ctx; + EGLSurface surf; + EGLint major, minor; + int depth; + int width; + int height; +}; + struct egl_test { const char **extensions; - enum piglit_result (*draw)(EGLDisplay egl_dpy, EGLSurface surf); + enum piglit_result (*draw)(struct egl_state *state); }; -int egl_run(const struct egl_test *test, int argc, char *argv[]); +EGLSurface +egl_util_create_pixmap(struct egl_state *state, + int width, int height, const EGLint *attribs); + +int egl_util_run(const struct egl_test *test, int argc, char *argv[]); #endif |