egl: Fix tests for EGL_EXT_device_base extension list use.

Submitted by Mathias Fröhlich on April 23, 2019, 8:01 p.m.

Details

Message ID 3c064b9a80d38f52ce1d031e61c4dfc9ab63963a.1556049065.git.Mathias.Froehlich@gmx.net
State New
Headers show
Series "egl: Fix tests for EGL_EXT_device_base extension list use." ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Mathias Fröhlich April 23, 2019, 8:01 p.m.
From: Mathias Fröhlich <mathias.froehlich@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@web.de>
---
 tests/egl/spec/egl_ext_device_base/egl_ext_device_base.c | 3 +++
 1 file changed, 3 insertions(+)

--
2.20.1

Patch hide | download patch | download mbox

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 */

Comments


Marek,

On Tuesday, 23 April 2019 22:16:54 CEST Marek Olšák wrote:
> Reviewed-by: Marek Olšák <marek.olsak@amd.com>

That is pushed!

Thanks!!

best
Mathias