From 047d1f920d892edf807156f3dbbc5184e90734aa Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Wed, 27 Jan 2016 09:34:34 +0000 Subject: r-car m2: add EGL driver EGL_NO_DISPLAY workaroud Weston 1.8.0 uses a new method of detection for client EGL extensions, which is incompatible with the driver provided by meta-renesas. We revert back to the old behavior as it is not strictly necessary for rendering. This allows Weston 1.8.0 to start in DRM mode on Porter/Koelsch with latest AGL base. Signed-off-by: Manuel Bachmann Change-Id: I0658b3beff96c7f173dbb4f85e8f18d3fce768c1 --- .../weston-workaround-for-egl-no-display.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-rcar-gen2/recipes-graphics/wayland/weston/weston-workaround-for-egl-no-display.patch (limited to 'meta-rcar-gen2/recipes-graphics/wayland/weston') diff --git a/meta-rcar-gen2/recipes-graphics/wayland/weston/weston-workaround-for-egl-no-display.patch b/meta-rcar-gen2/recipes-graphics/wayland/weston/weston-workaround-for-egl-no-display.patch new file mode 100644 index 0000000..3133d2f --- /dev/null +++ b/meta-rcar-gen2/recipes-graphics/wayland/weston/weston-workaround-for-egl-no-display.patch @@ -0,0 +1,27 @@ +--- a/src/gl-renderer.c 2016-01-27 08:49:43.328882567 +0000 ++++ b/src/gl-renderer.c 2016-01-27 08:56:31.807915324 +0000 +@@ -2127,7 +2127,11 @@ + { + const char *extensions; + ++#ifndef EGL_DRIVER_NO_EGL_NO_DISPLAY_SUPPORT + extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); ++#else ++ extensions = NULL; ++#endif + if (!extensions) { + weston_log("Retrieving EGL client extension string failed.\n"); + return; +@@ -2246,8 +2250,12 @@ + char s[64]; + + if (!extensions) { ++#ifndef EGL_DRIVER_NO_EGL_NO_DISPLAY_SUPPORT + extensions = (const char *) eglQueryString( + EGL_NO_DISPLAY, EGL_EXTENSIONS); ++#else ++ extensions = NULL; ++#endif + + if (!extensions) + return 0; -- cgit 1.2.3-korg