* [Buildroot] [PATCH] package/mesa3d: add KMSRO support for vc4
@ 2019-04-08 9:58 Romain Naour
2019-04-11 17:20 ` Thomas Petazzoni
2019-04-11 18:33 ` Bernd Kuhls
0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour @ 2019-04-08 9:58 UTC (permalink / raw)
To: buildroot
kmsro allow to support KMS displays with the renderonly layer used to attach a GPU [1].
Quote from mesa3d meson.build:
"kmsro driver requires one or more renderonly drivers (vc4, etnaviv, freedreno)"
But only vc4 support is available by using the (deprecated) autotools build system [2].
This will also be used by mesa to support KMSRO with the upcomming Panfrost and Lima Gallium drivers.
[1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=ed65aeec7810a7d98a19461ba933bd77268cb0f6
[2] https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=mesa-19.0.1#n2864
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
---
Bernd, are you working on a patch to switch mesa3d to a meson package ?
Thanks!
---
package/mesa3d/Config.in | 17 +++++++++++++++++
package/mesa3d/mesa3d.mk | 1 +
2 files changed, 18 insertions(+)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index fdd64b0337..b240855a6f 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -83,6 +83,12 @@ config BR2_PACKAGE_MESA3D_DRIVER
config BR2_PACKAGE_MESA3D_NEEDS_XA
bool
+# Quote from mesa3d meson.build:
+# "kmsro driver requires one or more renderonly drivers (vc4, etnaviv, freedreno)"
+# But only vc4 support is available by using the (deprecated) autotools build system.
+config BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
+ bool
+
comment "Gallium drivers"
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
@@ -93,6 +99,16 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
help
Mesa driver for Vivante GPUs.
+config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO
+ bool "Gallium KMSRO driver"
+ depends on BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
+ help
+ Support various sorts of KMS displays with the
+ renderonly layer used to attach a GPU.
+
+comment "Gallium KMSRO needs one or more renderonly drivers"
+ depends on !BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
+
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
bool "Gallium nouveau driver"
depends on BR2_i386 || BR2_x86_64
@@ -166,6 +182,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4
bool "Gallium vc4 driver"
depends on BR2_ARM_CPU_HAS_NEON || BR2_aarch64
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+ select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
select BR2_PACKAGE_LIBDRM_VC4
select BR2_PACKAGE_MESA3D_NEEDS_XA
select BR2_PACKAGE_MESA3D_OPENGL_EGL
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 9779de788c..d9558ac1fc 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -99,6 +99,7 @@ endif
#Gallium Drivers
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV) += etnaviv
+MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO) += kmsro
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU) += nouveau
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600) += r600
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/mesa3d: add KMSRO support for vc4
2019-04-08 9:58 [Buildroot] [PATCH] package/mesa3d: add KMSRO support for vc4 Romain Naour
@ 2019-04-11 17:20 ` Thomas Petazzoni
2019-04-11 18:33 ` Bernd Kuhls
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-04-11 17:20 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 8 Apr 2019 11:58:38 +0200
Romain Naour <romain.naour@smile.fr> wrote:
> kmsro allow to support KMS displays with the renderonly layer used to attach a GPU [1].
>
> Quote from mesa3d meson.build:
> "kmsro driver requires one or more renderonly drivers (vc4, etnaviv, freedreno)"
> But only vc4 support is available by using the (deprecated) autotools build system [2].
>
> This will also be used by mesa to support KMSRO with the upcomming Panfrost and Lima Gallium drivers.
>
> [1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=ed65aeec7810a7d98a19461ba933bd77268cb0f6
> [2] https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=mesa-19.0.1#n2864
>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> Bernd, are you working on a patch to switch mesa3d to a meson package ?
> Thanks!
> ---
> package/mesa3d/Config.in | 17 +++++++++++++++++
> package/mesa3d/mesa3d.mk | 1 +
> 2 files changed, 18 insertions(+)
Applied to master, thanks. However, I had to rewrap the commit log
message and the comments in the Config.in file. Please make sure to
wrap at a reasonable length ! :-)
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/mesa3d: add KMSRO support for vc4
2019-04-08 9:58 [Buildroot] [PATCH] package/mesa3d: add KMSRO support for vc4 Romain Naour
2019-04-11 17:20 ` Thomas Petazzoni
@ 2019-04-11 18:33 ` Bernd Kuhls
1 sibling, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2019-04-11 18:33 UTC (permalink / raw)
To: buildroot
Am Mon, 08 Apr 2019 11:58:38 +0200 schrieb Romain Naour:
> Bernd, are you working on a patch to switch mesa3d to a meson package ?
Hi Romain,
yes, but I do not have much time to test it:
http://patchwork.ozlabs.org/patch/1084248/
Regards, Bernd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-11 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 9:58 [Buildroot] [PATCH] package/mesa3d: add KMSRO support for vc4 Romain Naour
2019-04-11 17:20 ` Thomas Petazzoni
2019-04-11 18:33 ` Bernd Kuhls
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.