diff options
Diffstat (limited to 'meta/recipes-graphics/piglit/piglit/0004-egl_mesa_platform_surfaceless-Use-EXT-functions-for-.patch')
-rw-r--r-- | meta/recipes-graphics/piglit/piglit/0004-egl_mesa_platform_surfaceless-Use-EXT-functions-for-.patch | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/meta/recipes-graphics/piglit/piglit/0004-egl_mesa_platform_surfaceless-Use-EXT-functions-for-.patch b/meta/recipes-graphics/piglit/piglit/0004-egl_mesa_platform_surfaceless-Use-EXT-functions-for-.patch deleted file mode 100644 index 8b4fd34152..0000000000 --- a/meta/recipes-graphics/piglit/piglit/0004-egl_mesa_platform_surfaceless-Use-EXT-functions-for-.patch +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | From f3bb10947a87cc3a59619847f53d47708e10fbb7 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Daniel=20D=C3=ADaz?= <daniel.diaz@linaro.org> | ||
3 | Date: Wed, 17 May 2017 10:51:48 -0500 | ||
4 | Subject: [PATCH 4/4] egl_mesa_platform_surfaceless: Use EXT functions for | ||
5 | surfaces | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | These EXT symbols are guaranteed to exist since they require | ||
11 | EGL_EXT_platform_base. | ||
12 | |||
13 | Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> | ||
14 | Upstream-Status: Pending | ||
15 | --- | ||
16 | .../egl_mesa_platform_surfaceless.c | 23 ++++++++++++++++++++-- | ||
17 | 1 file changed, 21 insertions(+), 2 deletions(-) | ||
18 | |||
19 | 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 | ||
20 | index 81a3919..264ed71 100644 | ||
21 | --- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c | ||
22 | +++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c | ||
23 | @@ -24,6 +24,24 @@ | ||
24 | #include "piglit-util.h" | ||
25 | #include "piglit-util-egl.h" | ||
26 | |||
27 | +/* Extension function pointers. | ||
28 | + * | ||
29 | + * Use prefix 'pegl' (piglit egl) instead of 'egl' to avoid collisions with | ||
30 | + * prototypes in eglext.h. */ | ||
31 | +EGLSurface (*peglCreatePlatformPixmapSurfaceEXT)(EGLDisplay display, EGLConfig config, | ||
32 | + NativePixmapType native_pixmap, const EGLint *attrib_list); | ||
33 | +EGLSurface (*peglCreatePlatformWindowSurfaceEXT)(EGLDisplay display, EGLConfig config, | ||
34 | + NativeWindowType native_window, const EGLint *attrib_list); | ||
35 | + | ||
36 | +static void | ||
37 | +init_egl_extension_funcs(void) | ||
38 | +{ | ||
39 | + peglCreatePlatformPixmapSurfaceEXT = (void*) | ||
40 | + eglGetProcAddress("eglCreatePlatformPixmapSurfaceEXT"); | ||
41 | + peglCreatePlatformWindowSurfaceEXT = (void*) | ||
42 | + eglGetProcAddress("eglCreatePlatformWindowSurfaceEXT"); | ||
43 | +} | ||
44 | + | ||
45 | static void | ||
46 | test_setup(EGLDisplay *dpy) | ||
47 | { | ||
48 | @@ -72,7 +90,7 @@ test_create_window(void *test_data) | ||
49 | |||
50 | test_setup(&dpy); | ||
51 | |||
52 | - surf = eglCreatePlatformWindowSurface(dpy, EGL_NO_CONFIG_KHR, | ||
53 | + surf = peglCreatePlatformWindowSurfaceEXT(dpy, EGL_NO_CONFIG_KHR, | ||
54 | /*native_window*/ NULL, | ||
55 | /*attrib_list*/ NULL); | ||
56 | if (surf) { | ||
57 | @@ -103,7 +121,7 @@ test_create_pixmap(void *test_data) | ||
58 | |||
59 | test_setup(&dpy); | ||
60 | |||
61 | - surf = eglCreatePlatformPixmapSurface(dpy, EGL_NO_CONFIG_KHR, | ||
62 | + surf = peglCreatePlatformPixmapSurfaceEXT(dpy, EGL_NO_CONFIG_KHR, | ||
63 | /*native_window*/ NULL, | ||
64 | /*attrib_list*/ NULL); | ||
65 | if (surf) { | ||
66 | @@ -205,6 +223,7 @@ main(int argc, char **argv) | ||
67 | piglit_report_result(PIGLIT_FAIL); | ||
68 | } | ||
69 | |||
70 | + init_egl_extension_funcs(); | ||
71 | result = piglit_run_selected_subtests(subtests, selected_names, | ||
72 | num_selected, result); | ||
73 | piglit_report_result(result); | ||
74 | -- | ||
75 | 1.9.1 | ||
76 | |||