From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by mx.groups.io with SMTP id smtpd.web10.429.1612992995420181204 for ; Wed, 10 Feb 2021 13:36:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ossystems-com-br.20150623.gappssmtp.com header.s=20150623 header.b=tIv4H0O7; spf=pass (domain: ossystems.com.br, ip: 209.85.160.176, mailfrom: otavio.salvador@ossystems.com.br) Received: by mail-qt1-f176.google.com with SMTP id b24so2674258qtp.13 for ; Wed, 10 Feb 2021 13:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:mime-version:references:in-reply-to:date:message-id:subject:to :cc; bh=msp7W9/viqe/lD/7TS2tAqB8aOIxbVFqq+68Dt8+LY4=; b=tIv4H0O7GozM9cjpOS8J3MIP6SVUFmDyDW1Qq7NfJNJjCj7O7hXr2J+e5A8g/vs07t JtTwVYMBfgqFJfaMQx3ddzDhiCKHsbB4bFxePvdCHNUp69QzLVsNiV2I+QQKwME+6Yry kExqjuK8tz9gSKiQVXPdfxZsq0gLohCq+HnFdtWM/Q4DHVuHj8lo0INYl5La/Xp0zPBO u4Nh3rj8O8UtQT+q/iHpjdemEInsqIZIwJsb/SNazMZxbd3dbm2hP0IWVKwZvSMZNYHe ry8i2NxkiLmpK6f3ujeVzEX/wLKrLBrLgHVJHsEr6xtlXrYLqrnIDiXXRg9d6GZpLFyO aDAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:references:in-reply-to:date :message-id:subject:to:cc; bh=msp7W9/viqe/lD/7TS2tAqB8aOIxbVFqq+68Dt8+LY4=; b=ZKywHQ0Wa6RA22LQsdXxIwIRW6Qifk+gLmacD+xUUe6p1MUgX+qyI3yhPb8dyDujCK aaS6Fv+wAIJ2FyKZLloR0Ms/doBmIG6O5s5uiMkyccNtlP/WszGXlj0N7EfqD3K0qbzC C+v5vV3cmeU8/WxtoHEbrvhPYKvrsBCKvQVnTQjXzfBWC8as6w7tXRDqJjXouUKdURy4 G7GbKC+XhQGJrq4Vj2/F7T2Z8YrtC6FqiwA3DdsaeiWVLhh5iRvuEh92fOYtPuv1vmlr repTgaf2qywPt9OQE54eRely0yygpTT8bKJxIhY51ElWMR/aTmSOlE/+rltRt7xaHQmd 4s9g== X-Gm-Message-State: AOAM530V2rUn6CQs3MN2SPnWaN4AqKr5MWSIymaqUFbFGO+SIILgSFFk NG6XmEE/lm05uoPEN8+/LcFY3nOWGV9F6dyT X-Google-Smtp-Source: ABdhPJz5C+brsSqREPaKfx8nd324z4KUSyciNJRKrI12Pgni0SzvZL6H+JT5qD8JJueWpRLPNJ5fow== X-Received: by 2002:ac8:37d1:: with SMTP id e17mr4786129qtc.215.1612992994421; Wed, 10 Feb 2021 13:36:34 -0800 (PST) Return-Path: Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com. [209.85.219.42]) by smtp.gmail.com with ESMTPSA id c17sm2097342qtn.71.2021.02.10.13.36.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Feb 2021 13:36:33 -0800 (PST) From: "Otavio Salvador" X-Google-Original-From: Otavio Salvador Received: by mail-qv1-f42.google.com with SMTP id r13so1617897qvm.11 for ; Wed, 10 Feb 2021 13:36:33 -0800 (PST) X-Received: by 2002:ad4:528c:: with SMTP id v12mr4843266qvr.32.1612992993645; Wed, 10 Feb 2021 13:36:33 -0800 (PST) MIME-Version: 1.0 References: <20210210111113.17318-1-raymsmithuk@gmail.com> In-Reply-To: Date: Wed, 10 Feb 2021 18:36:22 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [OE-core] [PATCH] mesa: Remove dependency on opengl or vulkan DISTRO_FEATURES To: Andrey Zhizhikin Cc: Ray Smith , Patches and discussions about the oe-core layer Content-Type: multipart/alternative; boundary="000000000000695aa005bb0232e8" --000000000000695aa005bb0232e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em qua., 10 de fev. de 2021 =C3=A0s 17:21, Andrey Zhizhikin escreveu: > On Wed, Feb 10, 2021 at 3:41 PM Ray Smith wrote: > > On Wed, Feb 10, 2021 at 1:26 PM Otavio Salvador < > otavio.salvador@ossystems.com.br> wrote: > >> > >> > >> I didn't understand what you mean here. Could you elaborate this? > >> > > > > If you try to build mesa with PACKAGECONFIG "egl gles dri" you get an > error: > > ../mesa-20.3.2/meson.build:144:4: ERROR: Problem encountered: building > OpenGL ES without OpenGL is not supported. > > > > This means that in practice you can't get a GLES-only build of mesa, so > mesa always provides OpenGL (ignoring Vulkan). But for an abstract graphi= cs > driver that's not true - many drivers provide GLES but not OpenGL. I'd > argue that this is an implementation detail (and maybe a minor bug) of > mesa. If mesa internally requires code from its OpenGL support to build > GLES, it should silently include that if it's been configured for GLES-on= ly. > > > > I only mention it to be clear that in general "GLES requires OpenGL" is > not true, even though mesa's build system enforces that. > > Should this be clarified with Mesa folks upfront? If you believe that > this limitation is rather "artificial", then there has to be a proper > explanation from Mesa developers why OGL is provided when OGLES-only > is built. > Agreed ... I'd rather not drop the check until we hear from upstream the reasoning behind it. --=20 Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 --000000000000695aa005bb0232e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Em qua., 10 de fev. de 2021 =C3=A0s 1= 7:21, Andrey Zhizhikin <andrey.z@g= mail.com> escreveu:
On Wed, Feb 10, 2021 at 3:41 PM Ray Smith <raymsmithuk@gmail.com> wrot= e:
> On Wed, Feb 10, 2021 at 1:26 PM Otavio Salvador <otavio.salvador@o= ssystems.com.br> wrote:
>>
>>
>> I didn't understand what you mean here. Could you elaborate th= is?
>>
>
> If you try to build mesa with PACKAGECONFIG "egl gles dri" y= ou get an error:
> ../mesa-20.3.2/meson.build:144:4: ERROR: Problem encountered: building= OpenGL ES without OpenGL is not supported.
>
> This means that in practice you can't get a GLES-only build of mes= a, so mesa always provides OpenGL (ignoring Vulkan). But for an abstract gr= aphics driver that's not true - many drivers provide GLES but not OpenG= L. I'd argue that this is an implementation detail (and maybe a minor b= ug) of mesa. If mesa internally requires code from its OpenGL support to bu= ild GLES, it should silently include that if it's been configured for G= LES-only.
>
> I only mention it to be clear that in general "GLES requires Open= GL" is not true, even though mesa's build system enforces that.
Should this be clarified with Mesa folks upfront? If you believe that
this limitation is rather "artificial", then there has to be a pr= oper
explanation from Mesa developers why OGL is provided when OGLES-only
is built.

Agreed ... I'd rather not drop t= he check until we hear from upstream the reasoning behind it.

= --
Otavio Salvador =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 O.S. Systems
http://www.ossystems.com.br =C2=A0 =C2=A0 =C2=A0 =C2= =A0http://code.o= ssystems.com.br
Mobile: +55 (53) 9 9981-7854 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0Mobile: +1 (347) 903-9750
--000000000000695aa005bb0232e8--