summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-12-13 11:03:39 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2017-12-18 10:07:13 -0200
commite1d249bb067aa6c472367cff1e77ba2ddbc8303f (patch)
treeb05c0c22af13f1f9cf86e3cc31ae9e2eede13290 /recipes-graphics
parent0f69a2a87cb066c3303197f22d7579840612c557 (diff)
downloadmeta-freescale-e1d249bb067aa6c472367cff1e77ba2ddbc8303f.tar.gz
imx-gpu-viv: egl: Add alias for EGL_PLATFORM_X11_KHR
New EGL code uses EGL_PLATFORM_X11_KHR (for example glmark2) and the value is the same, so we can provide an alias for it instead of patching every code using it. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch32
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc3
2 files changed, 34 insertions, 1 deletions
diff --git a/recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch b/recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch
new file mode 100644
index 00000000..0d76bf4d
--- /dev/null
+++ b/recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch
@@ -0,0 +1,32 @@
1From 2b17f76f1495ee7eda50a754f8149e5ff3d04312 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Wed, 13 Dec 2017 11:00:04 -0200
4Subject: [PATCH] egl: Add EGL_PLATFORM_X11_KHR alias to EGL_PLATFORM_X11_EXT
5Organization: O.S. Systems Software LTDA.
6
7New EGL code uses EGL_PLATFORM_X11_KHR (for example glmark2) and the
8value is the same, so we can provide an alias for it instead of
9patching every code using it.
10
11Upstream-Status: Pending
12
13Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
14---
15 gpu-core/usr/include/EGL/eglext.h | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/gpu-core/usr/include/EGL/eglext.h b/gpu-core/usr/include/EGL/eglext.h
19index d3c5f56..5f8d906 100644
20--- a/gpu-core/usr/include/EGL/eglext.h
21+++ b/gpu-core/usr/include/EGL/eglext.h
22@@ -450,6 +450,7 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy,
23 #ifndef EGL_EXT_platform_x11
24 #define EGL_EXT_platform_x11 1
25 #define EGL_PLATFORM_X11_EXT 0x31D5
26+#define EGL_PLATFORM_X11_KHR EGL_PLATFORM_X11_EXT
27 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
28 #endif /* EGL_EXT_platform_x11 */
29
30--
312.15.1
32
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
index 9c981326..5a9a7a09 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
@@ -27,7 +27,8 @@ PE = "1"
27 27
28inherit fsl-eula-unpack 28inherit fsl-eula-unpack
29 29
30SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" 30SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
31 file://egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch"
31 32
32PACKAGES =+ "libclc-mx6 libclc-mx6-dev \ 33PACKAGES =+ "libclc-mx6 libclc-mx6-dev \
33 libgl-mx6 libgl-mx6-dev \ 34 libgl-mx6 libgl-mx6-dev \