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

Marek Olšák maraeo at gmail.com
Tue Apr 23 20:16:54 UTC 2019


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Tue, Apr 23, 2019 at 4:01 PM <Mathias.Froehlich at gmx.net> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20190423/ccc5481c/attachment.html>


More information about the Piglit mailing list