[Piglit] [PATCH] egl: Fix tests for EGL_EXT_device_base extension list use.

Mathias.Froehlich at gmx.net Mathias.Froehlich at gmx.net
Tue Apr 23 20:01:08 UTC 2019


From: Mathias Fröhlich <mathias.froehlich at web.de>

The test uses different gl contexts thus the pointers into the extensions
string needs to be invalidated for each new context.

Signed-off-by: Mathias Froehlich <Mathias.Froehlich at web.de>
---
 tests/egl/spec/egl_ext_device_base/egl_ext_device_base.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/egl/spec/egl_ext_device_base/egl_ext_device_base.c b/tests/egl/spec/egl_ext_device_base/egl_ext_device_base.c
index 445f4f61c..78e1ab690 100644
--- a/tests/egl/spec/egl_ext_device_base/egl_ext_device_base.c
+++ b/tests/egl/spec/egl_ext_device_base/egl_ext_device_base.c
@@ -196,6 +196,7 @@ pbuffer_test(EGLDisplay dpy)
 		return PIGLIT_FAIL;
 	}

+	piglit_gl_invalidate_extensions();
 	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);

 	/* Do the actual test */
@@ -260,6 +261,7 @@ surfaceless_test(EGLDisplay dpy)
 		return PIGLIT_FAIL;
 	}

+	piglit_gl_invalidate_extensions();
 	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);

 	/* Do the actual test */
@@ -306,6 +308,7 @@ configless_test(EGLDisplay dpy)
 		return PIGLIT_FAIL;
 	}

+	piglit_gl_invalidate_extensions();
 	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);

 	/* Do the actual test */
--
2.20.1



More information about the Piglit mailing list