From bf7fd9cfe0788fe2f819a4ae2cc7db8327fe161a Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 15 Dec 2017 11:08:59 -0200 Subject: 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 --- ..._PLATFORM_GBM_KHR-alias-to-EGL_PLATFORM_G.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_GBM_KHR-alias-to-EGL_PLATFORM_G.patch (limited to 'recipes-graphics') 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 @@ +From ea7f5aaf5b073d9b36253c65c8b466cc5039528d Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Fri, 15 Dec 2017 11:04:22 -0200 +Subject: [PATCH] egl: Add EGL_PLATFORM_GBM_KHR alias to EGL_PLATFORM_GBM_MESA +Organization: O.S. Systems Software LTDA. + +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. + +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 5f8d906..8f3cbd5 100644 +--- a/gpu-core/usr/include/EGL/eglext.h ++++ b/gpu-core/usr/include/EGL/eglext.h +@@ -513,6 +513,7 @@ EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR + #ifndef EGL_MESA_platform_gbm + #define EGL_MESA_platform_gbm 1 + #define EGL_PLATFORM_GBM_MESA 0x31D7 ++#define EGL_PLATFORM_GBM_KHR EGL_PLATFORM_GBM_MESA + #endif /* EGL_MESA_platform_gbm */ + + #ifndef EGL_NV_3dvision_surface +-- +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 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" inherit fsl-eula-unpack SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ - file://egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch" + file://egl-Add-EGL_PLATFORM_X11_KHR-alias-to-EGL_PLATFORM_X.patch \ + file://egl-Add-EGL_PLATFORM_GBM_KHR-alias-to-EGL_PLATFORM_G.patch" PACKAGES =+ "libclc-mx6 libclc-mx6-dev \ libgl-mx6 libgl-mx6-dev \ -- cgit v1.2.3-54-g00ecf