[Piglit] [PATCH] egl-util: Define EGL_KHR_gl_colorspace symbols for older distros.

Dylan Baker baker.dylan.c at gmail.com
Fri Jul 10 01:22:50 PDT 2015


Maybe a better plan is to have the test detect that those aren't defined
and skip?
On Jul 9, 2015 22:52, "Vinson Lee" <vlee at freedesktop.org> wrote:

> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/egl/egl-util.h |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/tests/egl/egl-util.h b/tests/egl/egl-util.h
> index 249319d..614e586 100644
> --- a/tests/egl/egl-util.h
> +++ b/tests/egl/egl-util.h
> @@ -15,6 +15,13 @@
>  #include <EGL/egl.h>
>  #include <EGL/eglext.h>
>
> +#ifndef EGL_KHR_gl_colorspace
> +#define EGL_KHR_gl_colorspace 1
> +#define EGL_GL_COLORSPACE_KHR             0x309D
> +#define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
> +#define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
> +#endif /* EGL_KHR_gl_colorspace */
> +
>  struct egl_state {
>         Display *dpy;
>         Window win;
> --
> 1.7.1
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150710/bf07a450/attachment-0001.html>


More information about the Piglit mailing list