summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-12-15 11:08:59 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2017-12-18 10:07:13 -0200
commitbf7fd9cfe0788fe2f819a4ae2cc7db8327fe161a (patch)
tree59c5b65e62d617123eec9e6fea0c17f5cf15b763 /recipes-graphics
parent68c390aa58cec61f65919b3e0d25e3d65bc2b50f (diff)
downloadmeta-freescale-bf7fd9cfe0788fe2f819a4ae2cc7db8327fe161a.tar.gz
imx-gpu-viv: egl: Add alias for EGL_PLATFORM_GBM_KHR
New EGL code uses EGL_PLATFORM_GBM_KHR (for example weston) 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_GBM_KHR-alias-to-EGL_PLATFORM_G.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_GBM_KHR-alias-to-EGL_PLATFORM_G.patch b/recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_GBM_KHR-alias-to-EGL_PLATFORM_G.patch
new file mode 100644
index 00000000..962e23b0
--- /dev/null
+++ b/recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_GBM_KHR-alias-to-EGL_PLATFORM_G.patch
@@ -0,0 +1,32 @@
1From ea7f5aaf5b073d9b36253c65c8b466cc5039528d Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Fri, 15 Dec 2017 11:04:22 -0200
4Subject: [PATCH] egl: Add EGL_PLATFORM_GBM_KHR alias to EGL_PLATFORM_GBM_MESA
5Organization: O.S. Systems Software LTDA.
6
7New EGL code uses EGL_PLATFORM_GBM_KHR (for example weston) 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 5f8d906..8f3cbd5 100644
20--- a/gpu-core/usr/include/EGL/eglext.h
21+++ b/gpu-core/usr/include/EGL/eglext.h
22@@ -513,6 +513,7 @@ EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR
23 #ifndef EGL_MESA_platform_gbm
24 #define EGL_MESA_platform_gbm 1
25 #define EGL_PLATFORM_GBM_MESA 0x31D7
26+#define EGL_PLATFORM_GBM_KHR EGL_PLATFORM_GBM_MESA
27 #endif /* EGL_MESA_platform_gbm */
28
29 #ifndef EGL_NV_3dvision_surface
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 5a9a7a09..5def1db5 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
@@ -28,7 +28,8 @@ PE = "1"
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 file://egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch \
32 file://egl-Add-EGL_PLATFORM_GBM_KHR-alias-to-EGL_PLATFORM_G.patch"
32 33
33PACKAGES =+ "libclc-mx6 libclc-mx6-dev \ 34PACKAGES =+ "libclc-mx6 libclc-mx6-dev \
34 libgl-mx6 libgl-mx6-dev \ 35 libgl-mx6 libgl-mx6-dev \