Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Joseph Kogut <joseph.kogut@gmail.com>
To: buildroot@buildroot.org
Cc: Adrian Perez de Castro <aperez@igalia.com>,
	 Eric Le Bihan <eric.le.bihan.dev@free.fr>,
	 Romain Naour <romain.naour@gmail.com>,
	 Joseph Kogut <joseph.kogut@gmail.com>
Subject: [Buildroot] [PATCH RESEND v5 5/5] package/qemu: add virglrenderer support
Date: Tue, 12 May 2026 12:36:34 -0700	[thread overview]
Message-ID: <20260512-virglrenderer-v5-5-1806e588eb59@gmail.com> (raw)
In-Reply-To: <20260512-virglrenderer-v5-0-1806e588eb59@gmail.com>

Add optional virglrenderer support, along with enabling OpenGL when
necessary.

https://qemu.readthedocs.io/en/v10.0.3/system/devices/virtio-gpu.html#virtio-gpu-virglrenderer

Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
---
 package/qemu/Config.in | 17 +++++++++++++++++
 package/qemu/qemu.mk   |  7 +++++++
 2 files changed, 24 insertions(+)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index e4e8eb3b63..599bcb11bb 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -130,6 +130,23 @@ config BR2_PACKAGE_QEMU_OPENGL
 comment "OpenGL support needs an OpenGL and/or OpenGL EGL backend"
 	depends on !(BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
 
+config BR2_PACKAGE_QEMU_VIRGLRENDERER
+	bool "Enable virglrenderer"
+	depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL
+	select BR2_PACKAGE_QEMU_OPENGL
+	select BR2_PACKAGE_VIRGLRENDERER
+	help
+	  Say 'y' to enable virglrenderer, enabling GL and Vulkan
+	  passthrough from the host to the guest through virtio-gpu.
+	  This enables the guest to have accelerated GL and/or Vulkan.
+
+	  Run qemu with `-device virtio-gpu-gl`
+
+	  https://qemu.readthedocs.io/en/v10.0.3/system/devices/virtio-gpu.html#virtio-gpu-virglrenderer
+
+comment "virglrenderer needs OpenGL accelerated display frontend support"
+	depends on !(BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
+
 config BR2_PACKAGE_QEMU_FDT
 	bool "Enable FDT"
 	select BR2_PACKAGE_DTC
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 9b780797fa..e250128dfa 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -281,6 +281,13 @@ else
 QEMU_OPTS += --disable-opengl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_VIRGLRENDERER),y)
+QEMU_OPTS += --enable-virglrenderer
+QEMU_DEPENDENCIES += virglrenderer
+else
+QEMU_OPTS += --disable-virglrenderer
+endif
+
 ifeq ($(BR2_STATIC_LIBS),y)
 QEMU_OPTS += --static
 endif

-- 
2.54.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2026-05-12 19:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 19:36 [Buildroot] [PATCH RESEND v5 0/5] Add virglrenderer support Joseph Kogut
2026-05-12 19:36 ` [Buildroot] [PATCH RESEND v5 1/5] package/libepoxy: remove gl/egl dependency Joseph Kogut
2026-05-13 15:35   ` Romain Naour via buildroot
2026-05-13 18:35     ` Joseph Kogut
2026-05-13 21:13       ` Romain Naour via buildroot
2026-05-13 21:28         ` Joseph Kogut
2026-05-12 19:36 ` [Buildroot] [PATCH RESEND v5 2/5] package/virglrenderer: new package Joseph Kogut
2026-05-12 19:36 ` [Buildroot] [PATCH RESEND v5 3/5] package/virglrenderer: Fix build with glibc 2.43 Joseph Kogut
2026-05-12 19:36 ` [Buildroot] [PATCH RESEND v5 4/5] package/qemu: add OpenGL config Joseph Kogut
2026-05-13 17:13   ` Romain Naour via buildroot
2026-05-12 19:36 ` Joseph Kogut [this message]
2026-05-13 17:17   ` [Buildroot] [PATCH RESEND v5 5/5] package/qemu: add virglrenderer support Romain Naour via buildroot
2026-05-13 18:06     ` Romain Naour via buildroot
2026-05-13 18:16     ` Joseph Kogut
2026-05-13 21:04       ` Romain Naour via buildroot
2026-05-13 22:09         ` Joseph Kogut
2026-05-14 12:10           ` Romain Naour via buildroot
2026-05-14 18:05             ` Joseph Kogut
2026-05-14 18:38               ` Romain Naour via buildroot
2026-05-14 19:38                 ` Joseph Kogut

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=20260512-virglrenderer-v5-5-1806e588eb59@gmail.com \
    --to=joseph.kogut@gmail.com \
    --cc=aperez@igalia.com \
    --cc=buildroot@buildroot.org \
    --cc=eric.le.bihan.dev@free.fr \
    --cc=romain.naour@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox