[Piglit] [PATCH 1/3] Fix egl-create-pbuffer-surface test

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon Oct 27 05:17:06 PDT 2014


Piglit egl-util nowadays require gles to be declared in
test attributes, otherwise we'll get gl.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 tests/egl/egl-create-pbuffer-surface.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/egl/egl-create-pbuffer-surface.c b/tests/egl/egl-create-pbuffer-surface.c
index 60c4e59..6cb3d70 100644
--- a/tests/egl/egl-create-pbuffer-surface.c
+++ b/tests/egl/egl-create-pbuffer-surface.c
@@ -86,10 +86,16 @@ int
 main(int argc, char *argv[])
 {
    struct egl_test test;
+   const EGLint test_attribs[] =
+   {
+      EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
+      EGL_NONE
+   };
 
    egl_init_test(&test);
    test.draw = draw;
    test.stop_on_failure = true;
+   test.config_attribs = test_attribs;
 
    if (egl_util_run(&test, argc, argv) != PIGLIT_PASS)
       return EXIT_FAILURE;
-- 
1.8.5.1



More information about the Piglit mailing list