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

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> c...@lists.openembedded.org> On Behalf Of Yongxin Liu
> Sent: Thursday, February 18, 2021 16:56
> To: openembedded-core@lists.openembedded.org;
> richard.pur...@linuxfoundation.org
> Subject: [OE-core][PATCH] mesa: Allow building the iris driver
> 
> Signed-off-by: Yongxin Liu <yongxin....@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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148526): 
https://lists.openembedded.org/g/openembedded-core/message/148526
Mute This Topic: https://lists.openembedded.org/mt/80725460/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to