diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2017-06-07 09:51:21 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 17:03:17 +0100 |
commit | c63903443bab75cda3bfccb8f872985bd7e943c0 (patch) | |
tree | 456d1baa4e126ec555e2ba5750318e4544e7bacc /meta/recipes-graphics/piglit/piglit/0003-egl_mesa_platform_surfaceless-Don-t-use-eglGetPlatfo.patch | |
parent | 262af7bf2d22d3a41865965b21aec06d9b9976cc (diff) | |
download | poky-c63903443bab75cda3bfccb8f872985bd7e943c0.tar.gz |
piglit: add patches for unbuildable surfaceless Mesa test
[Backported from master.]
Some EGL implementations do not actually ship all Khronos-
extensions. As it turns out, the Mali 450 driver does not
include any of the following symbols, used by the
egl_mesa_platform_surfaceless.c spec test:
* eglGetPlatformDisplay
* eglCreatePlatformPixmapSurface
* eglCreatePlatformWindowSurface
The Right Thing To Do was to obtain the implementation of
these functions (via eglGetProcAddress), as is provided
by their EXT counterparts. These are guaranteed to exist
since they are required by EGL_EXT_platform_base.
(From OE-Core rev: 903a051d47e550553aa9d6d9c38c43737f376cfe)
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | |||