diff options
| -rw-r--r-- | recipes-graphics/imx-gpu-viv/files/egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch | 32 | ||||
| -rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 3 |
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 000000000..0d76bf4d3 --- /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 @@ | |||
| 1 | From 2b17f76f1495ee7eda50a754f8149e5ff3d04312 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
| 3 | Date: Wed, 13 Dec 2017 11:00:04 -0200 | ||
| 4 | Subject: [PATCH] egl: Add EGL_PLATFORM_X11_KHR alias to EGL_PLATFORM_X11_EXT | ||
| 5 | Organization: O.S. Systems Software LTDA. | ||
| 6 | |||
| 7 | New EGL code uses EGL_PLATFORM_X11_KHR (for example glmark2) and the | ||
| 8 | value is the same, so we can provide an alias for it instead of | ||
| 9 | patching every code using it. | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | Signed-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 | |||
| 18 | diff --git a/gpu-core/usr/include/EGL/eglext.h b/gpu-core/usr/include/EGL/eglext.h | ||
| 19 | index 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 | -- | ||
| 31 | 2.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 9c981326a..5a9a7a097 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 | ||
| 28 | inherit fsl-eula-unpack | 28 | inherit fsl-eula-unpack |
| 29 | 29 | ||
| 30 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | 30 | SRC_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 | ||
| 32 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev \ | 33 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev \ |
| 33 | libgl-mx6 libgl-mx6-dev \ | 34 | libgl-mx6 libgl-mx6-dev \ |
