Enable GTK+3
cover Enable GTK+3
Enable GTK+3
Eric Ruei (4):
gtk+3: update wayland dependency and add patches
packagegroup-arago-gtk: add package group files for GTK
tisdk-roofs-image: add the GTK packagegroup packagegroup-arago-toolchain-tidsk-target: add GTK packagegroup
.../recipes-core/images/tisdk-rootfs-image.bb | 1 + .../packagegroup-arago-gtk-sdk-target.bb | 11 ++++ .../packagegroups/packagegroup-arago-tisdk-gtk.bb | 20 +++++++ .../packagegroup-arago-toolchain-tisdk-target.bb | 9 +++- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 6 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gtk-sdk-target.bb create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk.bb create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend
Signature · 1 line
1.9.1
PATCH 1/4 gtk+3: update wayland dependency and add patches
- replace wayland dependency mesa with virtual/egl
- patch to fix egl API calls for GLES2
--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+) create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend
meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61 -0
@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +
meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10 -0
@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"
Signature · 1 line
1.9.1
Re: [PATCH 1/4] gtk+3: update wayland dependency and add patches
Quoted 1 line · Eric Ruei
- replace wayland dependency mesa with virtual/egl
In the past we were using libgbm instead of virtual/egl
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-graphics/wayland/weston_4.0.0.bbappend;hb=HEAD
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-gnome/gtk%2B/gtk%2B3_%25.bbappend;hb=HEAD
Quoted 100 lines
- patch to fix egl API calls for GLES2
Signed-off-by Eric Ruei <[email protected]>--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+) create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappendmeta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61
-0@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10
-0@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 1/4] gtk+3: update wayland dependency and add patches
Quoted 8 lines · Denys Dmytriyenko
Quoted 1 line · Eric Ruei
- replace wayland dependency mesa with virtual/egl
In the past we were using libgbm instead of virtual/egl
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-graphics/wayland/weston_4.0.0.bbappend;hb=HEAD
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-gnome/gtk%2B/gtk%2B3_%25.bbappend;hb=HEAD
Denys: It does not make sense, virtual/egl replaces virtual/mesa, GTK will be a wayland-client and uses wayland-egl which does not depends on libgbm. The drm-backend of Weston compositor does depend on libgbm.
Quoted 100 lines
Quoted 100 lines
- patch to fix egl API calls for GLES2
Signed-off-by Eric Ruei <[email protected]>--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+)create mode 100644
meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patchcreate mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappendmeta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61
-0@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10
-0@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 1/4] gtk+3: update wayland dependency and add patches
Quoted 4 lines · Eric
Quoted 3 lines · Denys Dmytriyenko
Quoted 1 line · Eric Ruei
- replace wayland dependency mesa with virtual/egl
Quoted 8 lines
Quoted 5 lines
In the past we were using libgbm instead of virtual/egl
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-graphics/wayland/weston_4.0.0.bbappend;hb=HEAD
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-gnome/gtk%2B/gtk%2B3_%25.bbappend;hb=HEADDenys: It does not make sense, virtual/egl replaces virtual/mesa, GTK will be a wayland-client and uses wayland-egl which does not depends on libgbm. The drm-backend of Weston compositor does depend on libgbm.
Well, drm-backend of Weston also originally depended on virtual/mesa:
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/wayland/weston_2.0.0.bb?h=rocko
And we replace it with libgbm, not virtual/egl.
But if you say gtk+ really needs entire virtual/egl dependency to work with wayland-egl, then I'm fine.
Quoted 101 lines
Quoted 100 lines
Quoted 100 lines
- patch to fix egl API calls for GLES2
Signed-off-by Eric Ruei <[email protected]>--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+) create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappendmeta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61
-0@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10
-0@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 1/4] gtk+3: update wayland dependency and add patches
Quoted 14 lines · Denys Dmytriyenko
Quoted 4 lines · Eric
Quoted 3 lines · Denys Dmytriyenko
Quoted 1 line · Eric Ruei
- replace wayland dependency mesa with virtual/egl
Quoted 8 lines
Quoted 5 lines
In the past we were using libgbm instead of virtual/egl
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-graphics/wayland/weston_4.0.0.bbappend;hb=HEAD
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-gnome/gtk%2B/gtk%2B3_%25.bbappend;hb=HEADDenys: It does not make sense, virtual/egl replaces virtual/mesa, GTK will be a wayland-client and uses wayland-egl which does not depends on libgbm. The drm-backend of Weston compositor does depend on libgbm.
Quoted 9 lines
Well, drm-backend of Weston also originally depended on virtual/mesa:
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/wayland/weston_2.0.0.bb?h=rockoAnd we replace it with libgbm, not virtual/egl.
But if you say gtk+ really needs entire virtual/egl dependency to work with wayland-egl, then I'm fine.
virtual/mesa covers everything. drm-backend actually depends on both virtual/egl and libgbm.
Gtk+, as a wayland-client, depends on virtual/egl only.
Quoted 101 lines
Quoted 101 lines
Quoted 100 lines
Quoted 100 lines
- patch to fix egl API calls for GLES2
Signed-off-by Eric Ruei <[email protected]>--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+)create mode 100644
meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patchcreate mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappendmeta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61
-0@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10
-0@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 1/4] gtk+3: update wayland dependency and add patches
Quoted 18 lines · Eric
Quoted 17 lines · Denys Dmytriyenko
Quoted 4 lines · Eric
Quoted 3 lines · Denys Dmytriyenko
Quoted 1 line · Eric Ruei
- replace wayland dependency mesa with virtual/egl
Quoted 8 lines
Quoted 5 lines
In the past we were using libgbm instead of virtual/egl
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-graphics/wayland/weston_4.0.0.bbappend;hb=HEAD
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-gnome/gtk%2B/gtk%2B3_%25.bbappend;hb=HEADDenys: It does not make sense, virtual/egl replaces virtual/mesa, GTK will be a wayland-client and uses wayland-egl which does not depends on libgbm. The drm-backend of Weston compositor does depend on libgbm.
Well, drm-backend of Weston also originally depended on virtual/mesa:
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/wayland/weston_2.0.0.bb?h=rocko
Quoted 8 lines
Quoted 6 lines
And we replace it with libgbm, not virtual/egl.
But if you say gtk+ really needs entire virtual/egl dependency to work with wayland-egl, then I'm fine.
virtual/mesa covers everything. drm-backend actually depends on both virtual/egl and libgbm.
"drm udev libgbm mtdev"
Quoted 105 lines
Gtk+, as a wayland-client, depends on virtual/egl only.
Quoted 101 lines
Quoted 101 lines
Quoted 100 lines
Quoted 100 lines
- patch to fix egl API calls for GLES2
Signed-off-by Eric Ruei <[email protected]>--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+) create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappendmeta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61
-0@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10
-0@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 1/4] gtk+3: update wayland dependency and add patches
Quoted 25 lines · Denys Dmytriyenko
Quoted 24 lines · Eric
Quoted 23 lines · Denys Dmytriyenko
Quoted 4 lines · Eric
Quoted 3 lines · Denys Dmytriyenko
Quoted 1 line · Eric Ruei
- replace wayland dependency mesa with virtual/egl
Quoted 8 lines
Quoted 5 lines
In the past we were using libgbm instead of virtual/egl
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-graphics/wayland/weston_4.0.0.bbappend;hb=HEAD
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-gnome/gtk%2B/gtk%2B3_%25.bbappend;hb=HEADDenys: It does not make sense, virtual/egl replaces virtual/mesa, GTK will be a wayland-client and uses wayland-egl which does not depends on libgbm. The drm-backend of Weston compositor does depend on libgbm.
Well, drm-backend of Weston also originally depended on virtual/mesa:
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/wayland/weston_2.0.0.bb?h=rockoAnd we replace it with libgbm, not virtual/egl.
But if you say gtk+ really needs entire virtual/egl dependency to work with wayland-egl, then I'm fine.
Quoted 6 lines
Quoted 2 lines
virtual/mesa covers everything. drm-backend actually depends on both virtual/egl and libgbm.
"drm udev libgbm mtdev"
Ok, nevermind, looks like it depends on egl unconditionally...
Quoted 1 line
Quoted 1 line
Gtk+, as a wayland-client, depends on virtual/egl only.
I have no more questions, I'll merge it. Please fix the other patch.
Quoted 106 lines
Quoted 96 lines
Quoted 96 lines
Quoted 96 lines
Quoted 96 lines
Quoted 96 lines
- patch to fix egl API calls for GLES2
Signed-off-by Eric Ruei <[email protected]>--- ...t-wayland.c-cleanup-the-parameters-of-egl.patch | 61 ++++++++++++++++++++++ .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 ++++ 2 files changed, 71 insertions(+) create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch create mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappendmeta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch new file +61
-0@@ -0,0 +1,61 @@ +From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 21 Aug 2018 11:07:13 -0400 +Subject: [PATCH] gdkglcontext-wayland.c: cleanup the parameters of egl API + calls when GLES is used + +eglBindAPI: use EGL_OPENGL_ES_API instead of EGL_OPENGL_API +eglChooseConfig: need to specify EGL_OPENGL_ES2_BIT as EGL_RENDERABLE_TYPE + +Upstream-Status: Pending + +Signed-off-by: Eric Ruei <[email protected]> +--- + gdk/wayland/gdkglcontext-wayland.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c +index 254900d..3361eb3 100644 +--- a/gdk/wayland/gdkglcontext-wayland.c ++++ b/gdk/wayland/gdkglcontext-wayland.c +@@ -314,6 +314,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display); + EGLint major, minor; + EGLDisplay dpy; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + if (display_wayland->have_egl) + return TRUE; +@@ -326,7 +327,7 @@ gdk_wayland_display_init_gl (GdkDisplay *display) + if (!eglInitialize (dpy, &major, &minor)) + return FALSE; + +- if (!eglBindAPI (EGL_OPENGL_API)) ++ if (!eglBindAPI (use_es?EGL_OPENGL_ES_API:EGL_OPENGL_API)) + return FALSE; + + display_wayland->egl_display = dpy; +@@ -379,6 +380,7 @@ find_eglconfig_for_window (GdkWindow *window, + EGLint count; + EGLConfig *configs, chosen_config; + gboolean use_rgba; ++ gboolean use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ; + + int i = 0; + +@@ -395,6 +397,12 @@ find_eglconfig_for_window (GdkWindow *window, + attrs[i++] = EGL_BLUE_SIZE; + attrs[i++] = 1; + ++ if (use_es) ++ { ++ attrs[i++] = EGL_RENDERABLE_TYPE; ++ attrs[i++] = EGL_OPENGL_ES2_BIT; ++ } ++ + use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); + + if (use_rgba) +-- +1.9.1 +meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend new file +10
-0@@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland wayland-protocols libxkbcommon virtual/egl wayland-native" +GTKGLIBC_RRECOMMENDS = "${GTKBASE_RRECOMMENDS}" + +PR_append = ".arago0" + +SRC_URI += "\ + file://0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch \ +"Signature · 1 line
1.9.1Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
PATCH 2/4 packagegroup-arago-gtk: add package group files for GTK
In reply to Eric Ruei--- .../packagegroup-arago-gtk-sdk-target.bb | 11 +++++++++++ .../packagegroups/packagegroup-arago-tisdk-gtk.bb | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gtk-sdk-target.bb create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk.bb
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gtk-sdk-target.bb new file +11 -0
@@ -0,0 +1,11 @@ +DESCRIPTION = "Task to install Gtk dev packages in SDK" +LICENSE = "MIT" +PR = "r0" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +RDEPENDS_${PN} = "\ + gtk+3-dev \ +"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk.bb new file +20 -0
@@ -0,0 +1,20 @@ +DESCRIPTION = "Task to add Gtk embedded related packages" +LICENSE = "MIT" +PR = "r0" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +GTK = "\ + gtk+3 \ +" + +GTK_DEMOS = "\ + gtk+3-demo \ +" + +RDEPENDS_${PN} = "\ + ${GTK} \ + ${GTK_DEMOS} \ +"
Signature · 1 line
1.9.1
PATCH 3/4 tisdk-roofs-image: add the GTK packagegroup
In reply to Eric Ruei--- meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb | 1 + 1 file changed, 1 insertion(+)
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +1 -0
@@ -9,6 +9,7 @@ IMAGE_INSTALL += "\ packagegroup-arago-test \ packagegroup-arago-test-addons \ ${@bb.utils.contains('MACHINE_FEATURES','sgx','packagegroup-arago-tisdk-graphics','',d)} \ + packagegroup-arago-tisdk-gtk \ packagegroup-arago-tisdk-qte \ ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl','',d)} \ ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-extra','',d)} \
Signature · 1 line
1.9.1
Re: [PATCH 3/4] tisdk-roofs-image: add the GTK packagegroup
Quoted 10 lines · Eric Ruei
Signed-off-by Eric Ruei <[email protected]>--- meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb | 1 + 1 file changed, 1 insertion(+)meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +0
-0
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb IMAGE_INSTALL += "\ · line 12
Quoted 4 lines
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +1
-0@@ -9,6 +9,7 @@ IMAGE_INSTALL += "\ packagegroup-arago-test \ packagegroup-arago-test-addons \ ${@bb.utils.contains('MACHINE_FEATURES','sgx','packagegroup-arago-tisdk-graphics','',d)} \ + packagegroup-arago-tisdk-gtk \
Since you made gtk+ dependent on egl, you probably also need to check sgx flag?
Quoted 10 lines
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +0
-0packagegroup-arago-tisdk-qte \ ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl','',d)} \ ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-extra','',d)} \Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 3/4] tisdk-roofs-image: add the GTK packagegroup
Quoted 6 lines · Denys Dmytriyenko
Quoted 5 lines · Eric Ruei
Signed-off-by Eric Ruei <[email protected]>--- meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb | 1 + 1 file changed, 1 insertion(+)
Quoted 12 lines
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb IMAGE_INSTALL += "\ · line 12
Quoted 9 lines
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +1
-0@@ -9,6 +9,7 @@ IMAGE_INSTALL += "\ packagegroup-arago-test \ packagegroup-arago-test-addons \ ${@bb.utils.contains('MACHINE_FEATURES','sgx','packagegroup-arago-tisdk-graphics','',d)} \ + packagegroup-arago-tisdk-gtk \Since you made gtk+ dependent on egl, you probably also need to check sgx flag?
Yes, you are right. I shall add the condition at V2.
Quoted 11 lines
Quoted 11 lines
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +0
-0packagegroup-arago-tisdk-qte \ ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl','',d)} \ ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-extra','',d)} \Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
PATCH 4/4 packagegroup-arago-toolchain-tidsk-target: add GTK packagegroup
In reply to Eric Ruei--- .../packagegroups/packagegroup-arago-toolchain-tisdk-target.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb +8 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "Task to build and install header and libs into the sdk" LICENSE = "MIT" -PR = "r12" +PR = "r13" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -12,6 +12,12 @@ QT_TOOLCHAIN_TARGET = "\ QT_TOOLCHAIN_TARGET_keystone = "" QT_TOOLCHAIN_TARGET_omapl138 = "" +GTK_TOOLCHAIN_TARGET = "\ + packagegroup-arago-gtk-sdk-target \ +" +GTK_TOOLCHAIN_TARGET_keystone = "" +GTK_TOOLCHAIN_TARGET_omapl138 = "" + TISDK_TOOLCHAIN_BASE_TARGET = "\ packagegroup-arago-standalone-sdk-target \ packagegroup-arago-tisdk-multimedia-sdk-target \
@@ -26,6 +32,7 @@ TISDK_TOOLCHAIN_EXTRA_TARGET_omapl138 = "" RDEPENDS_${PN} = "\ ${QT_TOOLCHAIN_TARGET} \ + ${GTK_TOOLCHAIN_TARGET} \ ${TISDK_TOOLCHAIN_BASE_TARGET} \ ${TISDK_TOOLCHAIN_EXTRA_TARGET} \ ${@bb.utils.contains('MACHINE_FEATURES','sgx','packagegroup-arago-tisdk-graphics-sdk-target','',d)} \
Signature · 1 line
1.9.1