Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C71D5C54E71 for ; Tue, 19 Mar 2024 23:40:48 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by mx.groups.io with SMTP id smtpd.web10.31345.1710891646318763985 for ; Tue, 19 Mar 2024 16:40:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IpPQBwrC; spf=pass (domain: ti.com, ip: 198.47.19.142, mailfrom: rs@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42JNeji9095656; Tue, 19 Mar 2024 18:40:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1710891645; bh=Yaexw54RfwgkJm4kdQMl0eEqbQEVDLTUVeswp8oAqfc=; h=Date:CC:Subject:From:To:References:In-Reply-To; b=IpPQBwrCdp8OYk/dLBEsceTmUrGeVpykZuHhzUAkqUAoK4pGHJh1DuDbi0J0nmD8h qe8f9aQZDzurtoMv8IQW9VYXR3WD+ciwJF6mhmGQFiuqfkNRQHK/uYn2buNNHBK8Pi pyDiVPOVFT1vfsSpgLjRLLMpiW2REObXvo1GElVk= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42JNejTK106371 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Mar 2024 18:40:45 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 19 Mar 2024 18:40:45 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 19 Mar 2024 18:40:45 -0500 Received: from localhost (rs-desk.dhcp.ti.com [128.247.81.144]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42JNeiM6107556; Tue, 19 Mar 2024 18:40:44 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Date: Tue, 19 Mar 2024 18:40:44 -0500 Message-ID: CC: Ryan Eatmon , Max Krummenacher , Marcel Ziswiler Subject: Re: [oe-core][PATCH v3] mesa: enable imagination powervr support From: Randolph Sapp To: , Marcel Ziswiler , X-Mailer: aerc 0.15.2 References: <20240319152642.360329-1-marcel@ziswiler.com> <17BE42C654AA6AD9.29196@lists.openembedded.org> In-Reply-To: <17BE42C654AA6AD9.29196@lists.openembedded.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 19 Mar 2024 23:40:48 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/197346 On Tue Mar 19, 2024 at 2:58 PM CDT, Randolph Sapp via lists.openembedded.or= g wrote: > On Tue Mar 19, 2024 at 10:26 AM CDT, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Allows mesa to be build with Imagination PowerVR support. > > > > Signed-off-by: Marcel Ziswiler > > > > --- > > > > Changes in v3: > > - Add a negative condition to the imagination PACKAGECONFIG as well, > > otherwise upstream defaults may result in an incorrect configuration > > (option being quietly enabled without it being present in > > PACKAGECONFIG) as pointed out by Alex. > > > > Changes in v2: > > - Define imagination as a standard PACKAGECONFIG setting as suggested b= y > > Alex. > > > > meta/recipes-graphics/mesa/mesa.inc | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphic= s/mesa/mesa.inc > > index 12d7a18eb8..0d4a37c34a 100644 > > --- a/meta/recipes-graphics/mesa/mesa.inc > > +++ b/meta/recipes-graphics/mesa/mesa.inc > > @@ -113,6 +113,7 @@ VULKAN_DRIVERS:append:i686 =3D ",intel,amd" > > VULKAN_DRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', 'freed= reno', ',freedreno', '', d)}" > > VULKAN_DRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', 'broad= com', ',broadcom', '', d)}" > > VULKAN_DRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', 'galli= um-llvm', ',swrast', '', d)}" > > +VULKAN_DRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', 'imagi= nation', ',imagination-experimental', '', d)}" > > PACKAGECONFIG[vulkan] =3D "-Dvulkan-drivers=3D${@strip_comma('${VULKAN= _DRIVERS}')}, -Dvulkan-drivers=3D'',glslang-native vulkan-loader vulkan-hea= ders" > > > > # mesa development and testing tools support, per driver > > @@ -122,6 +123,7 @@ TOOLS:append =3D "${@bb.utils.contains('PACKAGECONF= IG', 'etnaviv', ',etnaviv', '', > > TOOLS:append =3D "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', '= ,freedreno', '', d)}" > > TOOLS:append =3D "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima= ', '', d)}" > > TOOLS:append =3D "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',= panfrost', '', d)}" > > +TOOLS:append =3D "${@bb.utils.contains('PACKAGECONFIG', 'imagination',= ',imagination', '', d)}" > > > > # dependencies for tools. > > TOOLS_DEPS:append =3D "${@bb.utils.contains('PACKAGECONFIG', 'freedren= o', ' ncurses libxml2 ', '', d)}" > > @@ -189,6 +191,8 @@ PACKAGECONFIG[xa] =3D "-Dgallium-xa=3Denabled, -Dg= allium-xa=3Ddisabled" > > PACKAGECONFIG[va] =3D "-Dgallium-va=3Denabled,-Dgallium-va=3Ddisabled,= libva-initial" > > PACKAGECONFIG[vdpau] =3D "-Dgallium-vdpau=3Denabled,-Dgallium-vdpau=3D= disabled,libvdpau" > > > > +PACKAGECONFIG[imagination] =3D "-Dimagination-srv=3Dtrue,-Dimagination= -srv=3Dfalse" > > + > > PACKAGECONFIG[lima] =3D "" > > GALLIUMDRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', 'lima'= , ',lima', '', d)}" > > > > @@ -327,7 +331,7 @@ PACKAGES_DYNAMIC +=3D "^mesa-driver-.*" > > PACKAGES_DYNAMIC:class-native =3D "^mesa-driver-.*-native" > > > > FILES:mesa-megadriver =3D "${libdir}/dri/* ${datadir}/drirc.d" > > -FILES:mesa-vulkan-drivers =3D "${libdir}/libvulkan_*.so ${datadir}/vul= kan" > > +FILES:mesa-vulkan-drivers =3D "${libdir}/libvulkan_*.so ${libdir}/libp= owervr_rogue.so ${datadir}/vulkan" > > FILES:${PN}-vdpau-drivers =3D "${libdir}/vdpau/*.so.*" > > FILES:libegl-mesa =3D "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_ven= dor.d" > > FILES:libgbm =3D "${libdir}/libgbm.so.*" > > -- > > 2.44.0 > > Looks good. Thanks Marcel! Running a test build now to verify things. Wil= l > respond with Tested-By whenever that finishes. > > Reviewed-by: Randolph Sapp Sets thing's up as well as they can be right now! General question for the mailing list, though: for drivers that only provid= e Vulkan, should zink automatically get appended to them PACKAGECONFIG string= if the opengl distro feature is selected? I don't expect this patch to do it n= ow as this version of the driver is still not fully Vulkan compliant, but later i= t'll be relevant. Tested-by: Randolph Sapp