diff options
Diffstat (limited to 'meta/recipes-graphics/piglit/piglit/0003-egl_mesa_platform_surfaceless-Don-t-use-eglGetPlatfo.patch')
-rw-r--r-- | meta/recipes-graphics/piglit/piglit/0003-egl_mesa_platform_surfaceless-Don-t-use-eglGetPlatfo.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-graphics/piglit/piglit/0003-egl_mesa_platform_surfaceless-Don-t-use-eglGetPlatfo.patch b/meta/recipes-graphics/piglit/piglit/0003-egl_mesa_platform_surfaceless-Don-t-use-eglGetPlatfo.patch new file mode 100644 index 0000000000..0f24dc1815 --- /dev/null +++ b/meta/recipes-graphics/piglit/piglit/0003-egl_mesa_platform_surfaceless-Don-t-use-eglGetPlatfo.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From c0dc430b8f5deeacdb11cd188195e16f512af233 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Diaz <daniel.diaz@linaro.org> | ||
3 | Date: Wed, 17 May 2017 18:00:16 -0500 | ||
4 | Subject: [PATCH 3/4] egl_mesa_platform_surfaceless: Don't use | ||
5 | eglGetPlatformDisplay directly | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | The entry point is not guaranteed to exist, so use the | ||
11 | piglit_egl_get_default_display() helper which does the correct thing. | ||
12 | |||
13 | Upstream-Status: Accepted, since git 7b74602. | ||
14 | |||
15 | Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> | ||
16 | Reviewed-by: Emil Velikov <emil.velikov@collabora.com> | ||
17 | --- | ||
18 | .../spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | 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 | ||
22 | index 3bbd6aa..81a3919 100644 | ||
23 | --- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c | ||
24 | +++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c | ||
25 | @@ -31,7 +31,7 @@ test_setup(EGLDisplay *dpy) | ||
26 | |||
27 | piglit_require_egl_extension(EGL_NO_DISPLAY, "EGL_MESA_platform_surfaceless"); | ||
28 | |||
29 | - *dpy = eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, NULL, NULL); | ||
30 | + *dpy = piglit_egl_get_default_display(EGL_PLATFORM_SURFACELESS_MESA); | ||
31 | if (*dpy == EGL_NO_DISPLAY) { | ||
32 | printf("failed to get EGLDisplay\n"); | ||
33 | piglit_report_result(PIGLIT_SKIP); | ||
34 | -- | ||
35 | 1.9.1 | ||
36 | |||