qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] meson.build: report graphics backends
@ 2023-12-22 11:48 Alex Bennée
  2023-12-26 16:21 ` Philippe Mathieu-Daudé
  2023-12-28 11:33 ` Paolo Bonzini
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Bennée @ 2023-12-22 11:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alex Bennée, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé

To enable accelerated VirtIO GPUs for the guest we need the rendering
support on the host but currently it's not reported in the
configuration summary. Add a graphics backend section and report the
status of the VirGL and Rutabaga support libraries.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meson.build b/meson.build
index 6c77d9687de..93868568870 100644
--- a/meson.build
+++ b/meson.build
@@ -4307,6 +4307,12 @@ summary_info += {'curses support':    curses}
 summary_info += {'brlapi support':    brlapi}
 summary(summary_info, bool_yn: true, section: 'User interface')
 
+# Graphics backends
+summary_info = {}
+summary_info += {'VirGL support':     virgl}
+summary_info += {'Rutabaga support':  rutabaga}
+summary(summary_info, bool_yn: true, section: 'Graphics backends')
+
 # Audio backends
 summary_info = {}
 if targetos not in ['darwin', 'haiku', 'windows']
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH] meson.build: report graphics backends
  2023-12-22 11:48 [RFC PATCH] meson.build: report graphics backends Alex Bennée
@ 2023-12-26 16:21 ` Philippe Mathieu-Daudé
  2023-12-28 11:33 ` Paolo Bonzini
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-12-26 16:21 UTC (permalink / raw)
  To: Alex Bennée, qemu-devel
  Cc: Paolo Bonzini, Marc-André Lureau, Daniel P. Berrangé,
	Thomas Huth

Hi Alex,

On 22/12/23 12:48, Alex Bennée wrote:
> To enable accelerated VirtIO GPUs for the guest we need the rendering
> support on the host but currently it's not reported in the
> configuration summary. Add a graphics backend section and report the
> status of the VirGL and Rutabaga support libraries.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>   meson.build | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/meson.build b/meson.build
> index 6c77d9687de..93868568870 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -4307,6 +4307,12 @@ summary_info += {'curses support':    curses}
>   summary_info += {'brlapi support':    brlapi}
>   summary(summary_info, bool_yn: true, section: 'User interface')
>   
> +# Graphics backends
> +summary_info = {}
> +summary_info += {'VirGL support':     virgl}
> +summary_info += {'Rutabaga support':  rutabaga}

These are already under the generic 'Dependencies' section
below.

> +summary(summary_info, bool_yn: true, section: 'Graphics backends')
> +
>   # Audio backends
>   summary_info = {}
>   if targetos not in ['darwin', 'haiku', 'windows']

Instead you want to move to your new section:

-- >8 --
diff --git a/meson.build b/meson.build
index 1bf526d653..ad7d870321 100644
--- a/meson.build
+++ b/meson.build
@@ -4308,4 +4308,11 @@ summary_info += {'brlapi support':    brlapi}
  summary(summary_info, bool_yn: true, section: 'User interface')

+# Graphics backends
+summary_info = {}
+summary_info += {'OpenGL support (epoxy)': opengl}
+summary_info += {'VirGL support': virgl}
+summary_info += {'Rutabaga support': rutabaga}
+summary(summary_info, bool_yn: true, section: 'Graphics backends')
+
  # Audio backends
  summary_info = {}
@@ -4343,6 +4350,4 @@ summary_info += {'libtasn1':          tasn1}
  summary_info += {'PAM':               pam}
  summary_info += {'iconv support':     iconv}
-summary_info += {'virgl support':     virgl}
-summary_info += {'rutabaga support':  rutabaga}
  summary_info += {'blkio support':     blkio}
  summary_info += {'curl support':      curl}
@@ -4361,5 +4366,4 @@ summary_info += {'U2F support':       u2f}
  summary_info += {'libusb':            libusb}
  summary_info += {'usb net redir':     usbredir}
-summary_info += {'OpenGL support (epoxy)': opengl}
  summary_info += {'GBM':               gbm}
  summary_info += {'libiscsi support':  libiscsi}
---

Without duplication:

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH] meson.build: report graphics backends
  2023-12-22 11:48 [RFC PATCH] meson.build: report graphics backends Alex Bennée
  2023-12-26 16:21 ` Philippe Mathieu-Daudé
@ 2023-12-28 11:33 ` Paolo Bonzini
  2023-12-28 13:09   ` Philippe Mathieu-Daudé
  1 sibling, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2023-12-28 11:33 UTC (permalink / raw)
  To: Alex Bennée
  Cc: qemu-devel, Marc-André Lureau, Daniel P . Berrangé,
	Thomas Huth, Philippe Mathieu-Daudé

Queued with the duplication removed, thanks.

Paolo



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH] meson.build: report graphics backends
  2023-12-28 11:33 ` Paolo Bonzini
@ 2023-12-28 13:09   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-12-28 13:09 UTC (permalink / raw)
  To: Paolo Bonzini, Alex Bennée
  Cc: qemu-devel, Marc-André Lureau, Daniel P . Berrangé,
	Thomas Huth

On 28/12/23 12:33, Paolo Bonzini wrote:
> Queued with the duplication removed, thanks.

Thanks!



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-28 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 11:48 [RFC PATCH] meson.build: report graphics backends Alex Bennée
2023-12-26 16:21 ` Philippe Mathieu-Daudé
2023-12-28 11:33 ` Paolo Bonzini
2023-12-28 13:09   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).