mesa: Allow building the iris driver
A message that is not in the archive (sent off-list or not yet received): [email protected]
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
Quoted 34 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Yongxin Liu
Sent: Thursday, February 18, 2021 16:56
To: [email protected]; [email protected]
Subject: [OE-core][PATCH] mesa: Allow building the iris driverSigned-off-by Yongxin Liu <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 3 +++ 1 file changed, 3 insertions(+)meta/recipes- renamed from meta/recipes-graphics/mesa/mesa.inc +0
-0graphics/mesa/mesa.inc
indexcb075a8b89..72e22d654e100644meta/recipes-graphics/mesa/mesa.inc +0
-0@@ -168,6 +168,9 @@ GALLIUMDRIVERS_append="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '
PACKAGECONFIG[panfrost] = ""
GALLIUMDRIVERS_append="${@bb.utils.contains('PACKAGECONFIG', 'panfrost',
',panfrost', '', d)}"meta/recipes-graphics/mesa/mesa.inc +2
-0+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
Hi,
2021. 02. 24. 1:31 keltezéssel, Yongxin Liu írta:
Quoted 5 lines
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.
Quoted 8 lines
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.txtfor 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
Quoted 40 lines
Quoted 35 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Yongxin Liu
Sent: Thursday, February 18, 2021 16:56
To: [email protected]; [email protected]
Subject: [OE-core][PATCH] mesa: Allow building the iris driverSigned-off-by Yongxin Liu <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 3 +++ 1 file changed, 3 insertions(+)meta/recipes- renamed from meta/recipes-graphics/mesa/mesa.inc +0
-0graphics/mesa/mesa.inc
indexcb075a8b89..72e22d654e100644meta/recipes-graphics/mesa/mesa.inc +0
-0@@ -168,6 +168,9 @@ GALLIUMDRIVERS_append="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '
PACKAGECONFIG[panfrost] = ""
GALLIUMDRIVERS_append="${@bb.utils.contains('PACKAGECONFIG', 'panfrost',
',panfrost', '', d)}"meta/recipes-graphics/mesa/mesa.inc +2
-0+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
Quoted 45 lines
-----Original Message-----
From: Böszörményi Zoltán <[email protected]>
Sent: Wednesday, February 24, 2021 13:36
To: Liu, Yongxin <[email protected]>; openembedded- [email protected]; [email protected]
Subject: Re: [OE-core][PATCH] mesa: Allow building the iris driver[Please note: This e-mail is from an EXTERNAL e-mail address]
Hi,
2021. 02. 24. 1:31 keltezéssel, Yongxin Liu írta:
Quoted 2 lines
Iris driver supports Broadwell and newer (Gen8+) for very low CPU
overhead.
Quoted 2 lines
With this patch, user can add
PACKAGECONFIG_append= " iris" in theirbbappend file.
Quoted 2 lines
And then iris will be added in build options, like "-Dgallium-
drivers=swrast,virgl,iris".
Quoted 8 lines
You can check
mesa/2_20.3.2-r0/build/meson-logs/meson-log.txtfor this.The driver can be found in build directory:
mesa/2_20.3.2-r0/image/usr/lib64/dri/iris_dri.soThanks,
YongxinSince
VAR_appendcan appear multiple times, bbappend files can equally doGALLIUMDRIVERS_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):...
Review
Quoted 6 lines
(quoted diff) +2
-2-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"
Great. Thanks for pointing it out.
--Yongxin
Quoted 43 lines
Best regards,
Zoltán BöszörményiQuoted 40 lines
Quoted 35 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Yongxin Liu
Sent: Thursday, February 18, 2021 16:56
To: [email protected]; [email protected]
Subject: [OE-core][PATCH] mesa: Allow building the iris driverSigned-off-by Yongxin Liu <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 3 +++ 1 file changed, 3 insertions(+)meta/recipes- renamed from meta/recipes-graphics/mesa/mesa.inc +0
-0graphics/mesa/mesa.inc index
cb075a8b89..72e22d654e100644meta/recipes-graphics/mesa/mesa.inc +0
-0@@ -168,6 +168,9 @@ GALLIUMDRIVERS_append="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '
PACKAGECONFIG[panfrost] = ""
GALLIUMDRIVERS_append="${@bb.utils.contains('PACKAGECONFIG',
'panfrost', ',panfrost', '', d)}"meta/recipes-graphics/mesa/mesa.inc +3
-0+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