From e1d249bb067aa6c472367cff1e77ba2ddbc8303f Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 13 Dec 2017 11:03:39 -0200 Subject: 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 --- ..._PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch | 32 ++++++++++++++++++++++ recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 3 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch (limited to 'recipes-graphics') 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 @@ +From 2b17f76f1495ee7eda50a754f8149e5ff3d04312 Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Wed, 13 Dec 2017 11:00:04 -0200 +Subject: [PATCH] egl: Add EGL_PLATFORM_X11_KHR alias to EGL_PLATFORM_X11_EXT +Organization: O.S. Systems Software LTDA. + +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. + +Upstream-Status: Pending + +Signed-off-by: Otavio Salvador +--- + gpu-core/usr/include/EGL/eglext.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gpu-core/usr/include/EGL/eglext.h b/gpu-core/usr/include/EGL/eglext.h +index d3c5f56..5f8d906 100644 +--- a/gpu-core/usr/include/EGL/eglext.h ++++ b/gpu-core/usr/include/EGL/eglext.h +@@ -450,6 +450,7 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, + #ifndef EGL_EXT_platform_x11 + #define EGL_EXT_platform_x11 1 + #define EGL_PLATFORM_X11_EXT 0x31D5 ++#define EGL_PLATFORM_X11_KHR EGL_PLATFORM_X11_EXT + #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6 + #endif /* EGL_EXT_platform_x11 */ + +-- +2.15.1 + 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" inherit fsl-eula-unpack -SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" +SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ + file://egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch" PACKAGES =+ "libclc-mx6 libclc-mx6-dev \ libgl-mx6 libgl-mx6-dev \ -- cgit v1.2.3-54-g00ecf