[Piglit] [PATCH] egl_mesa_platform_surfaceless: Fix build against old EGL headers

Ilia Mirkin imirkin at alum.mit.edu
Wed Oct 19 18:57:58 UTC 2016


It builds. I wonder if this should go into piglit-util-egl.h instead.
Your call. Either way,

Tested-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Wed, Oct 19, 2016 at 2:54 PM, Chad Versace <chadversary at chromium.org> wrote:
> The test required unreleased EGL headers. Oops. Add the needed header
> extension snippets to the C file.
>
> Reported-by: Ilia Mirkin <imirkin at alum.mit.edu>
> Reported-by: Mark Janes <mark.a.janes at intel.com>
> ---
>
> This patch needs a tested-by from someone without superfresh headers.
>
>  .../egl_mesa_platform_surfaceless.c                            | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
> index 3bbd6aa..cfe1164 100644
> --- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
> +++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
> @@ -24,6 +24,16 @@
>  #include "piglit-util.h"
>  #include "piglit-util-egl.h"
>
> +#ifndef EGL_KHR_no_config_context
> +#define EGL_KHR_no_config_context 1
> +#define EGL_NO_CONFIG_KHR                 ((EGLConfig)0)
> +#endif /* EGL_KHR_no_config_context */
> +
> +#ifndef EGL_MESA_platform_surfaceless
> +#define EGL_MESA_platform_surfaceless 1
> +#define EGL_PLATFORM_SURFACELESS_MESA           0x31DD
> +#endif /* EGL_MESA_platform_surfaceless */
> +
>  static void
>  test_setup(EGLDisplay *dpy)
>  {
> --
> 2.10.0
>


More information about the Piglit mailing list