All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zoltan Boszormenyi" <zboszor@pr.hu>
To: Yongxin Liu <yongxin.liu@windriver.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>,
	"richard.purdie@linuxfoundation.org"
	<richard.purdie@linuxfoundation.org>
Subject: Re: [OE-core][PATCH] mesa: Allow building the iris driver
Date: Wed, 24 Feb 2021 06:36:08 +0100	[thread overview]
Message-ID: <3a1b9a3d-2a57-2ced-2a1d-77293a14b6b4@pr.hu> (raw)
In-Reply-To: <PH0PR11MB517551B295DA5D06BAD7A144E59F9@PH0PR11MB5175.namprd11.prod.outlook.com>

Hi,

2021. 02. 24. 1:31 keltezéssel, Yongxin Liu írta:
> 
> Iris driver supports Broadwell and newer (Gen8+) for very low CPU overhead.
> 
> With this patch, user can add PACKAGECONFIG_append = " iris" in their bbappend file.
> 
> And then iris will be added in build options, like "-Dgallium-drivers=swrast,virgl,iris".
> You can check mesa/2_20.3.2-r0/build/meson-logs/meson-log.txt for this.
> 
> The driver can be found in build directory: mesa/2_20.3.2-r0/image/usr/lib64/dri/iris_dri.so
> 
> 
> Thanks,
> Yongxin

Since VAR_append can appear multiple times,
bbappend files can equally do

GALLIUMDRIVERS_append_x86_class-target = ",iris"
GALLIUMDRIVERS_append_x86-64_class-target = ",iris"

instead of this PACKAGECONFIG.

Anyway, since this MR exists in Mesa:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8015
after a certain point this will have to be used in the
upstream recipe (pseudo-patch follows):

...
-DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
-DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
...
+GALLIUMDRIVERS_append_x86_class-target = ",nouveau,i915,iris"
+GALLIUMDRIVERS_append_x86-64_class-target = ",nouveau,i915,iris"
...

Best regards,
Zoltán Böszörményi

> 
>> -----Original Message-----
>> From: openembedded-core@lists.openembedded.org <openembedded-
>> core@lists.openembedded.org> On Behalf Of Yongxin Liu
>> Sent: Thursday, February 18, 2021 16:56
>> To: openembedded-core@lists.openembedded.org;
>> richard.purdie@linuxfoundation.org
>> Subject: [OE-core][PATCH] mesa: Allow building the iris driver
>>
>> Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
>> ---
>>   meta/recipes-graphics/mesa/mesa.inc | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-
>> graphics/mesa/mesa.inc
>> index cb075a8b89..72e22d654e 100644
>> --- a/meta/recipes-graphics/mesa/mesa.inc
>> +++ b/meta/recipes-graphics/mesa/mesa.inc
>> @@ -168,6 +168,9 @@ GALLIUMDRIVERS_append
>> ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '
>>   PACKAGECONFIG[panfrost] = ""
>>   GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost',
>> ',panfrost', '', d)}"
>>
>> +PACKAGECONFIG[iris] = ""
>> +GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'iris',
>> ',iris', '', d)}"
>> +
>>   OSMESA = "${@bb.utils.contains('PACKAGECONFIG', 'gallium', 'gallium',
>> 'classic', d)}"
>>   PACKAGECONFIG[osmesa] = "-Dosmesa=${OSMESA},-Dosmesa=none"
>>
>> --
>> 2.14.5
> 
> 
> 
> 
> 


  reply	other threads:[~2021-02-24  5:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1664CBDF366E1544.31496@lists.openembedded.org>
2021-02-24  0:31 ` [OE-core][PATCH] mesa: Allow building the iris driver Yongxin Liu
2021-02-24  5:36   ` Zoltan Boszormenyi [this message]
2021-02-24  5:41     ` Yongxin Liu
2021-02-18  8:56 Yongxin Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3a1b9a3d-2a57-2ced-2a1d-77293a14b6b4@pr.hu \
    --to=zboszor@pr.hu \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=yongxin.liu@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.