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>,
Raphael Pavlidis <raphael.pavlidis@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH v7 7/8] package/qemu: add virglrenderer integration
Date: Fri, 15 May 2026 19:03:16 -0700 [thread overview]
Message-ID: <20260515-virglrenderer-v7-7-1f1814b65ccd@gmail.com> (raw)
In-Reply-To: <20260515-virglrenderer-v7-0-1f1814b65ccd@gmail.com>
Add optional virglrenderer integration, 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 | 21 +++++++++++++++++++++
package/qemu/qemu.mk | 7 +++++++
2 files changed, 28 insertions(+)
diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index d4e4e37a3e..dbae7c4de4 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -126,6 +126,27 @@ 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 qemu support for virglrenderer.
+ virglrenderer backends such as virgl, venus, or DRM native
+ context are configured under the virglrenderer package.
+
+ 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)
+
+comment "virglrenderer needs virgl, venus, or a DRM backend for guest acceleration"
+ depends on BR2_PACKAGE_QEMU_VIRGLRENDERER
+ depends on !BR2_PACKAGE_VIRGLRENDERER_HAS_BACKEND
+
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 aff1762fb9..4f4786532c 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -279,6 +279,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
next prev parent reply other threads:[~2026-05-16 2:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-16 2:03 [Buildroot] [PATCH v7 0/8] Add virglrenderer support Joseph Kogut
2026-05-16 2:03 ` [Buildroot] [PATCH v7 1/8] package/weston: add EGL dependency for XWayland Joseph Kogut
2026-05-16 2:03 ` [Buildroot] [PATCH v7 2/8] package/wpewebkit: fix stale libepoxy dependency comments Joseph Kogut
2026-05-16 2:03 ` [Buildroot] [PATCH v7 3/8] package/libepoxy: remove gl/egl dependency Joseph Kogut
2026-05-16 2:03 ` [Buildroot] [PATCH v7 4/8] package/virglrenderer: new package Joseph Kogut
2026-05-16 2:03 ` [Buildroot] [PATCH v7 5/8] package/virglrenderer: Fix build with glibc 2.43 Joseph Kogut
2026-05-16 2:03 ` [Buildroot] [PATCH v7 6/8] package/qemu: add OpenGL config Joseph Kogut
2026-05-16 2:03 ` Joseph Kogut [this message]
2026-05-16 2:03 ` [Buildroot] [PATCH v7 8/8] support/testing: add virglrenderer test 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=20260515-virglrenderer-v7-7-1f1814b65ccd@gmail.com \
--to=joseph.kogut@gmail.com \
--cc=aperez@igalia.com \
--cc=buildroot@buildroot.org \
--cc=eric.le.bihan.dev@free.fr \
--cc=raphael.pavlidis@gmail.com \
--cc=romain.naour@gmail.com \
--cc=thomas.petazzoni@bootlin.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 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.