Return-Path: Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by arago-project.org (Postfix) with ESMTPS id 6CC52529A5 for ; Wed, 19 Feb 2020 22:58:02 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 01JMu3IA008413 for ; Wed, 19 Feb 2020 16:56:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1582152963; bh=WqCc784DrGZRj6S/lkR9Gm8zVPqeN3fFBUpxXloG7jY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=D3BeNQn2sjlrzqAM9YSCmZYv34tHZtbqY8OicrFK+P0LTBSEwEkVX/MqfOKTm9ASE aj4j/YP/Oo0CFHDY/wGSLZ0pvdx92+VoEinZTvmoCOI1ZIIttFvJnWpSz4OPXw7V6X slNRM+KoN9xH7n0+/+3sTor4r1Z2X/3DQvWUlvIc= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 01JMu3ul070341 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 19 Feb 2020 16:56:03 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 19 Feb 2020 16:56:02 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 19 Feb 2020 16:56:02 -0600 Received: from [10.250.73.201] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01JMu206126428; Wed, 19 Feb 2020 16:56:02 -0600 To: Denys Dmytriyenko , Eric Ruei References: <20200219225339.9953-1-afd@ti.com> From: "Andrew F. Davis" Message-ID: <7bb3e6e5-e2b9-364c-fe90-fe8484e99a03@ti.com> Date: Wed, 19 Feb 2020 17:56:02 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200219225339.9953-1-afd@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: meta-arago@arago-project.org Subject: Re: [zeus/master][PATCH] gtk+3: Remove no longer needed GTK3+ GLES/EGL fix X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2020 22:58:02 -0000 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit On 2/19/20 5:53 PM, Andrew F. Davis wrote: > We will exit this function at ->has_egl, so this patch is not > needed. Remove it and the bbappends that adds it. > Eric, If I'm missing something or there is some case that will still fail without this let me know. Andrew > Signed-off-by: Andrew F. Davis > --- > ...land.c-cleanup-the-parameters-of-egl.patch | 61 ------------------- > .../recipes-gnome/gtk+/gtk+3_%.bbappend | 10 --- > 2 files changed, 71 deletions(-) > delete mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch > delete mode 100644 meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend > > diff --git a/meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch b/meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch > deleted file mode 100644 > index 174dbdda..00000000 > --- a/meta-arago-distro/recipes-gnome/gtk+/gtk+3/0001-gdkglcontext-wayland.c-cleanup-the-parameters-of-egl.patch > +++ /dev/null > @@ -1,61 +0,0 @@ > -From d4c8511b845de02271b6dcf57a6edbf01f3f1905 Mon Sep 17 00:00:00 2001 > -From: Eric Ruei > -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 > ---- > - 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 > - > diff --git a/meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend b/meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend > deleted file mode 100644 > index d3fe5051..00000000 > --- a/meta-arago-distro/recipes-gnome/gtk+/gtk+3_%.bbappend > +++ /dev/null > @@ -1,10 +0,0 @@ > -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 \ > -" >