[Piglit] [PATCH 2/3] Fix egl-nok-texture-from-pixmap

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon Oct 27 05:17:07 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-nok-texture-from-pixmap.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/egl/egl-nok-texture-from-pixmap.c b/tests/egl/egl-nok-texture-from-pixmap.c
index 9e10933..ef89d47 100644
--- a/tests/egl/egl-nok-texture-from-pixmap.c
+++ b/tests/egl/egl-nok-texture-from-pixmap.c
@@ -104,10 +104,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.extensions = extensions;
 	test.draw = draw;
+	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