Skip to contentSkip to conversation

Add virglrenderer support

PATCH Applied Joseph Kogut 2 participants 12 messages Jun 8 – Jul 3

lore
Share & tools
lore
#0 lore raw

cover Add virglrenderer support

Hello,

This patch series adds support for building the virglrenderer library in buildroot.

Virglrenderer is a userspace library used to support rendering and compute in virtual machines over virtio-gpu. Virglrenderer supports serialized API level access to OpenGL and Vulkan through virgl and venus respectively, as well as mediated DRM level access using host native context [0]. Notably libkrun [1] and rutabaga_gfx [2] are also capable of utilizing virglrenderer.

The first two patches prepare for removing libepoxy's dependency on GL/EGL, and the third patch removes it. This allows virglrenderer to build with its libepoxy dependency, without actually depending on EGL/GLX.

This enables, for example, headless compute through Vulkan using Venus or host native context inside virtual machines.

The fourth patch adds the new virglrenderer package. Optional configs enable VirGL (API-level OpenGL passthrough), Venus (API-level Vulkan passthrough), hardware accelerated video encode/decode through VA-API, and DRM driver specific backends for host native context support.

The fifth patch adds an OpenGL config for qemu.

The sixth patch adds a qemu virglrenderer config that selects OpenGL support, as virgl/venus support in qemu currently requires a GL accelerated display frontend (a patch series on the mailing list [3] is proposing decoupling display GL support from Venus). Other VMMs such as libkrun don't suffer from the same coupling currently.

The seventh patch adds a new runtime test for virglrenderer with qemu using a software GL driver and a nested guest.

[0] https://www.collabora.com/news-and-blog/blog/2025/01/15/the-state-of-gfx-virtualization-using-virglrenderer/
[1] https://github.com/containers/libkrun
[2] https://github.com/magma-gpu/rutabaga_gfx
[3] https://lore.kernel.org/qemu-devel/[email protected]/

---
Changes in v8:
- Clean up Kconfig help, indentation, comments [Arnout]
- Move virglrenderer vaapi cfg, under "Other options"
[Arnout]
- Add placeholder comment for vaapi support
- Squash glibc 2.43 build fix into virglrenderer [Arnout]
- test: Split into inner/outer kernel/rootfs [Arnout]
- test: Use aarch64 build [Arnout]
- test: disable BR2_PACKAGE_QEMU_BLOBS in outer guest config
- test: switch from glmark2 to kmscube (remove udev dep) [Arnout]
- Link to v7: https://patch.msgid.link/[email protected]

Changes in v7:
- History cleanup
- Link to v6: https://patch.msgid.link/[email protected]

Changes in v6:
- Add explicit EGL dependency for weston XWayland support, and only
enable XWayland glamor when libepoxy has EGL support
- Fix stale libepoxy dependency comments in wpewebkit
- Document why libepoxy can be built without GLX or EGL support
- Improve qemu OpenGL dependency comment
- Add qemu and virglrenderer comments warning when no virglrenderer
backend is enabled
- Add a runtime test for virglrenderer using nested qemu and virgl
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Fixed authorship, Signed-off-by, and sent from address
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Removed libepoxy dependency on GL/EGL
- Introduce explicit configs for virglrenderer DRM backends, virgl
(see above note)
- Moved virglrenderer Kconfig from Libraries -> Graphics to 'Graphics
libraries and applications' (next to mesa3d && X.org)
- Add a patch from upstream virglrenderer to fix glibc 2.43 builds
- select libdrm in virglrenderer only when required (drm backends,
video)
- BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_MSM depends on !BR2_arm
- Explicitly configure GLX and/or EGL when
BR2_PACKAGE_VIRGLRENDERER_VIRGL=y
- Separate comments for qemu GL/virglrenderer [Romain]
- Split up qemu feature configs into separate commits [Romain]
- Link to v3: https://lore.kernel.org/buildroot/[email protected]/

Changes in v3:
- Bump version to v1.3.0
- Add optional deps for panfrost and i915 native context (new)
- Add config for vaapi support
- Remove GLX in favor of EGL
- Update qemu docs links, as previous ones 404 [Romain]
- Fix invalid config reference in BR2_PACKAGE_QEMU_VIRGLRENDERER
[Romain]
- Select libepoxy when enabling OpenGL support in qemu [Romain]
- Add depends on gcc >= 4.1 to virglrenderer (from meson.build)
- Add depends on libgbm to virglrenderer [Romain]
- Add comments for missing dependencies to virglrenderer Kconfig
- Select vulkan-headers when venus is enabled [Romain]
- Disable venus explicitly when the symbol isn't selected
- Link to v2: https://lore.kernel.org/buildroot/[email protected]

Changes in v2:
- Rebase onto next (python-glslang patch merged)
- Bump version to v1.2.0
- Remove hidden configs for virglrenderer vDRM backends [Romain]
- Fixed typo in qemu/Config.in [Romain]
- Split up configs for qemu OpenGL and virglrenderer support [Romain]
- More detailed qemu config help messages
- Link to v1: https://lore.kernel.org/r/[email protected]

To: [email protected]
Cc: Raphael Pavlidis <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Adrian Perez de Castro <[email protected]>
Cc: Eric Le Bihan <[email protected]>
Cc: Joseph Kogut <[email protected]>
Cc: Romain Naour <[email protected]>

---
Joseph Kogut (7):
package/weston: add EGL dependency for XWayland package/wpewebkit: fix stale libepoxy dependency comments package/libepoxy: remove gl/egl dependency package/virglrenderer: new package package/qemu: add OpenGL config
package/qemu: add virglrenderer integration support/testing: add virglrenderer test

 DEVELOPERS                                         |   2 +
 package/Config.in                                  |   1 +
 package/libepoxy/Config.in                         |   8 +-
 package/qemu/Config.in                             |  35 +++++
 package/qemu/qemu.mk                               |  15 +-
 .../0001-fix-build-with-glibc-2.43.patch           |  39 +++++
 package/virglrenderer/Config.in                    | 114 +++++++++++++++
 package/virglrenderer/virglrenderer.hash           |   5 +
 package/virglrenderer/virglrenderer.mk             |  62 ++++++++
 package/weston/Config.in                           |   6 +-
 package/wpewebkit/Config.in                        |   4 +-
 package/x11r7/xwayland/xwayland.mk                 |   2 +-
 .../testing/tests/package/test_virglrenderer.py    | 159 +++++++++++++++++++++
 .../test_virglrenderer/linux-inner.fragment        |   4 +
 .../test_virglrenderer/linux-outer.fragment        |   6 +
 .../rootfs-overlay/etc/profile.d/stty-raw.sh       |   3 +
 16 files changed, 455 insertions(+), 10 deletions(-)

---
base-commit: 32351f979822a0b3a45b82c2d82bdb2328b02f5a
change-id: 20260607-b4-virglrenderer-ae7616926e92

Best regards,

Signature · 6 lines
Joseph Kogut <[email protected]>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/7 package/weston: add EGL dependency for XWayland

BR2_PACKAGE_WESTON_XWAYLAND currently depends on BR2_PACKAGE_LIBEPOXY, which implicitly requires either libGL or libEGL. However, the XWayland glamor support uses libepoxy with EGL, so express that dependency directly. With only libGL and no libEGL, it fails to build. E.g.,

BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y BR2_PACKAGE_MESA3D_OPENGL_GLX=y BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XWAYLAND=y
BR2_PACKAGE_LIBEPOXY=y

fails with:

In file included from ../glamor/glamor_priv.h:73,
from ../glamor/glamor_composite_glyphs.c:25:
../glamor/glamor_context.h:27:10: fatal error: epoxy/egl.h: No such file or directory 27 | #include <epoxy/egl.h>
| ^~~~~~~~~~~~~

---
 package/weston/Config.in           | 6 ++++--
 package/x11r7/xwayland/xwayland.mk | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
package/weston/Config.in +4 -2
index 774b75d5fb..6f61c3c561 100644
@@ -123,6 +123,7 @@ comment "X11 (nested) compositor needs X.org enabled"
 
 config BR2_PACKAGE_WESTON_XWAYLAND
 	bool "XWayland support"
+	depends on BR2_PACKAGE_HAS_LIBEGL
 	depends on BR2_PACKAGE_LIBEPOXY
 	depends on BR2_PACKAGE_XORG7 # xwayland
 	depends on BR2_USE_MMU # xwayland
@@ -136,8 +137,9 @@ config BR2_PACKAGE_WESTON_XWAYLAND
 	select BR2_PACKAGE_XLIB_LIBXCURSOR
 	select BR2_PACKAGE_XWAYLAND
 
-comment "XWayland support needs libepoxy and X.org enabled"
-	depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_LIBEPOXY
+comment "XWayland support needs libepoxy w/ EGL and X.org enabled"
+	depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_XORG7 || \
+		!BR2_PACKAGE_LIBEPOXY
 
 comment "XWayland support needs a toolchain w/ threads, dynamic library"
 	depends on BR2_USE_MMU
package/x11r7/xwayland/xwayland.mk +1 -1
index 8fa5260f47..5902f85d4f 100644
@@ -30,7 +30,7 @@ XWAYLAND_CONF_OPTS = \
 	-Ddtrace=false \
 	-Ddocs=false
 
-ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
+ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_LIBEPOXY),yy)
 XWAYLAND_CONF_OPTS += -Dglamor=true
 XWAYLAND_DEPENDENCIES += libepoxy
 else
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 2/7 package/wpewebkit: fix stale libepoxy dependency comments

In reply to Joseph Kogut

wpewebkit depends directly on OpenGL ES and EGL support, but those dependencies are not imposed by libepoxy itself. Update the inline comments so they describe the actual dependency source before relaxing libepoxy's package-level EGL/GL dependency.

---
 package/wpewebkit/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/wpewebkit/Config.in +2 -2
index c8602f1de6..c4ee5a27f7 100644
@@ -38,8 +38,8 @@ config BR2_PACKAGE_WPEWEBKIT
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	depends on BR2_USE_WCHAR # icu, libsoup3
-	depends on BR2_PACKAGE_HAS_LIBGLES # libepoxy
-	depends on BR2_PACKAGE_HAS_LIBEGL # libepoxy
+	depends on BR2_PACKAGE_HAS_LIBGLES
+	depends on BR2_PACKAGE_HAS_LIBEGL # wpebackend-fdo
 	depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
 	select BR2_HOST_CMAKE_AT_LEAST_3_20
 	select BR2_PACKAGE_CAIRO if BR2_ENDIAN = "BIG"
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 3/7 package/libepoxy: remove gl/egl dependency

In reply to Joseph Kogut

Libepoxy is a library for handling OpenGL function pointer management.

It has backends for egl/glx, which may at one point have been mandatory to enable, but the library now builds with none of the above enabled features, as seen below.

libepoxy 1.5.10

User defined options
Cross files : /home/joseph/br-test-pkg/arm-aarch64/build/libepoxy-1.5.10//buildroot-build/cross-compilation.conf
b_pie : false
b_staticpic : true
buildtype : release
build.cmake_prefix_path: /home/joseph/br-test-pkg/arm-aarch64/host/lib/cmake
default_library : shared
docs : false
egl : no
glx : no
libdir : lib
build.pkg_config_path : /home/joseph/br-test-pkg/arm-aarch64/host/lib/pkgconfig
prefix : /usr
strip : false
tests : false
x11 : false

Removing these dependencies allows for some applications that require it as a build dependency, but otherwise can run headless or without GL, to build and function, using other graphics APIs or display pipelines.

Weston, for example, can still use Vulkan and DRM when linked to libepoxy without GL/EGL/X11 support.

---
 package/libepoxy/Config.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
package/libepoxy/Config.in +4 -4
index 9da190b895..4b23497d46 100644
@@ -1,12 +1,12 @@
 config BR2_PACKAGE_LIBEPOXY
 	bool "libepoxy"
-	depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL
 	select BR2_PACKAGE_XUTIL_UTIL_MACROS
 	help
 	  Epoxy is a library for handling OpenGL function pointer
 	  management for you.
 
-	  https://github.com/anholt/libepoxy
+	  It can be built without EGL or GLX support for packages
+	  that use libepoxy as a mandatory dependency but do not need
+	  OpenGL entry points at runtime.
 
-comment "libepoxy needs an OpenGL and/or OpenGL EGL backend"
-	depends on !BR2_PACKAGE_HAS_LIBEGL && !BR2_PACKAGE_HAS_LIBGL
+	  https://github.com/anholt/libepoxy
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH 3/7] package/libepoxy: remove gl/egl dependency

In reply of:

Quoted 29 lines

Libepoxy is a library for handling OpenGL function pointer management.

It has backends for egl/glx, which may at one point have been mandatory to enable, but the library now builds with none of the above enabled features, as seen below.

libepoxy 1.5.10

User defined options
Cross files : /home/joseph/br-test-pkg/arm-aarch64/build/libepoxy-1.5.10//buildroot-build/cross-compilation.conf
b_pie : false
b_staticpic : true
buildtype : release
build.cmake_prefix_path: /home/joseph/br-test-pkg/arm-aarch64/host/lib/cmake
default_library : shared
docs : false
egl : no
glx : no
libdir : lib
build.pkg_config_path : /home/joseph/br-test-pkg/arm-aarch64/host/lib/pkgconfig
prefix : /usr
strip : false
tests : false
x11 : false

Removing these dependencies allows for some applications that require it as a build dependency, but otherwise can run headless or without GL, to build and function, using other graphics APIs or display pipelines.

Quoted 5 lines

Weston, for example, can still use Vulkan and DRM when linked to libepoxy without GL/EGL/X11 support.

Applied to 2025.02.x & 2026.05.x. Thanks

Quoted 33 lines
---
 package/libepoxy/Config.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
package/libepoxy/Config.in +4 -4
index 9da190b895..4b23497d46 100644
@@ -1,12 +1,12 @@
 config BR2_PACKAGE_LIBEPOXY
 	bool "libepoxy"
-	depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL
 	select BR2_PACKAGE_XUTIL_UTIL_MACROS
 	help
 	  Epoxy is a library for handling OpenGL function pointer
 	  management for you.
 
-	  https://github.com/anholt/libepoxy
+	  It can be built without EGL or GLX support for packages
+	  that use libepoxy as a mandatory dependency but do not need
+	  OpenGL entry points at runtime.
 
-comment "libepoxy needs an OpenGL and/or OpenGL EGL backend"
-	depends on !BR2_PACKAGE_HAS_LIBEGL && !BR2_PACKAGE_HAS_LIBGL
+	  https://github.com/anholt/libepoxy
Signature · 7 lines
-- 
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

PATCH 4/7 package/virglrenderer: new package

In reply to Joseph Kogut

Add virglrenderer, an optional dependency of QEMU, which facilitates acceleration of rendering and optionally video decode through virtio-gpu.

Add an upstream patch to fix the build with glibc 2.43, not present in a stable release yet.

---
 DEVELOPERS                                         |   1 +
 package/Config.in                                  |   1 +
 .../0001-fix-build-with-glibc-2.43.patch           |  39 +++++++
 package/virglrenderer/Config.in                    | 114 +++++++++++++++++++++
 package/virglrenderer/virglrenderer.hash           |   5 +
 package/virglrenderer/virglrenderer.mk             |  62 +++++++++++
 6 files changed, 222 insertions(+)
DEVELOPERS +1 -0
index c71640b6b5..e3f0b2a562 100644
@@ -1772,6 +1772,7 @@ F:	package/python-xlib/
 F:	package/sentry-cli/
 F:	package/sentry-native/
 F:	package/unclutter-xfixes/
+F:	package/virglrenderer/
 
 N:	Joshua Henderson <[email protected]>
 F:	package/qt5/qt5wayland/
package/Config.in +1 -0
index 166b666ad8..cf67c7cc1a 100644
@@ -365,6 +365,7 @@ comment "Graphic libraries"
 	source "package/sdl2_ttf/Config.in"
 	source "package/spirv-headers/Config.in"
 	source "package/tk/Config.in"
+	source "package/virglrenderer/Config.in"
 	source "package/vulkan-headers/Config.in"
 	source "package/vulkan-loader/Config.in"
 	source "package/vulkan-sdk/Config.in"
package/virglrenderer/0001-fix-build-with-glibc-2.43.patch new file +39 -0
new file mode 100644
index 0000000000..fda1d9b218
@@ -0,0 +1,39 @@
+From 986b5fc57b07c06b5e0b3a3694d06898ebc80163 Mon Sep 17 00:00:00 2001
+From: Maximilian Hofmann <[email protected]>
+Date: Thu, 26 Feb 2026 23:28:58 +0100
+Subject: [PATCH] fix: build with glibc 2.43
+
+Several glibc functions now return a const pointer if the input is a
+const pointer and a non-const pointer if the input is non-const, causing
+a build failure.
+
+Fix this by declaring the output pointers as const if they are never
+modified, and for the lone failure where the output is modified, instead
+make the input non-const.
+
+Signed-off-by: Maximilian Hofmann <[email protected]>
+Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1599>
+
+Upstream: https://gitlab.freedesktop.org/virgl/virglrenderer/-/commit/986b5fc57b07c06b5e0b3a3694d06898ebc80163
+
+Signed-off-by: Joseph Kogut <[email protected]>
+---
+ src/gallium/auxiliary/tgsi/tgsi_text.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
+index db7d7b95..7e37bf79 100644
+--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
++++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
+@@ -84,7 +84,7 @@ streq_nocase_uprcase(const char *str1,
+ static inline bool skip_n_chars(const char **pcur,
+                                    int n)
+ {
+-   char* str = memchr(*pcur, '\0', n);
++   const char* str = memchr(*pcur, '\0', n);
+    if (unlikely(str)) {
+       *pcur = str;
+       return false;
+-- 
+2.53.0
+
package/virglrenderer/Config.in new file +114 -0

114 lines not on this page · raw message

package/virglrenderer/virglrenderer.hash new file +5 -0
new file mode 100644
index 0000000000..03da595091
@@ -0,0 +1,5 @@
+# Locally calculated
+sha256  065bc56e89e6f631f96101cd62eba0748e48eb888b434edc86e89d05395e76f3  virglrenderer-1.3.0.tar.gz
+
+# License
+sha256  3b32caf16e2402c2aff2b716858713f3e1feded85c25e71bf829816ee5009402  COPYING
package/virglrenderer/virglrenderer.mk new file +62 -0

62 lines not on this page · raw message

Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

PATCH 5/7 package/qemu: add OpenGL config

In reply to Joseph Kogut
---
 package/qemu/Config.in | 14 ++++++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)
package/qemu/Config.in +14 -0
index 2a6aa288d3..8e932c014f 100644
@@ -112,6 +112,20 @@ config BR2_PACKAGE_QEMU_SDL
 	  Say 'y' to enable the SDL frontend, that is, a graphical
 	  window presenting the VM's display.
 
+config BR2_PACKAGE_QEMU_OPENGL
+	bool "Enable OpenGL"
+	depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL
+	select BR2_PACKAGE_LIBEPOXY
+	help
+	  Say 'y' to enable OpenGL accelerated display frontend support.
+	  This is necessary to efficiently display frames rendered in a
+	  guest on the host.
+
+	  Run qemu with `-display sdl,gl=on`
+
+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_FDT
 	bool "Enable FDT"
 	select BR2_PACKAGE_DTC
package/qemu/qemu.mk +7 -1
index 2199db38cf..aff1762fb9 100644
@@ -272,6 +272,13 @@ else
 QEMU_OPTS += --disable-usb-redir
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_OPENGL),y)
+QEMU_OPTS += --enable-opengl
+QEMU_DEPENDENCIES += libepoxy
+else
+QEMU_OPTS += --disable-opengl
+endif
+
 ifeq ($(BR2_STATIC_LIBS),y)
 QEMU_OPTS += --static
 endif
@@ -329,7 +336,6 @@ define QEMU_CONFIGURE_CMDS
 			--disable-membarrier \
 			--disable-mpath \
 			--disable-netmap \
-			--disable-opengl \
 			--disable-oss \
 			--disable-pa \
 			--disable-plugins \
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

PATCH 6/7 package/qemu: add virglrenderer integration

In reply to Joseph Kogut

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

---
 package/qemu/Config.in | 21 +++++++++++++++++++++
 package/qemu/qemu.mk   |  7 +++++++
 2 files changed, 28 insertions(+)
package/qemu/Config.in +21 -0
index 8e932c014f..bfb8ccea88 100644
@@ -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
package/qemu/qemu.mk +7 -0
index aff1762fb9..4f4786532c 100644
@@ -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
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

PATCH 7/7 support/testing: add virglrenderer test

In reply to Joseph Kogut

Add basic smoke test for glmark2 running in a nested qemu guest with virtio-gpu-gl-pci.

The outer machine uses the Mesa softpipe driver for GLES support with minimal dependencies. Just test virgl for now, as lavapipe (software Vulkan driver) requires LLVM, and this validates virglrenderer.

---
 DEVELOPERS                                         |   1 +
 .../testing/tests/package/test_virglrenderer.py    | 159 +++++++++++++++++++++
 .../test_virglrenderer/linux-inner.fragment        |   4 +
 .../test_virglrenderer/linux-outer.fragment        |   6 +
 .../rootfs-overlay/etc/profile.d/stty-raw.sh       |   3 +
 5 files changed, 173 insertions(+)
DEVELOPERS +1 -0
index e3f0b2a562..91dd259844 100644
@@ -1773,6 +1773,7 @@ F:	package/sentry-cli/
 F:	package/sentry-native/
 F:	package/unclutter-xfixes/
 F:	package/virglrenderer/
+F:	support/testing/tests/package/test_virglrenderer.py
 
 N:	Joshua Henderson <[email protected]>
 F:	package/qt5/qt5wayland/
support/testing/tests/package/test_virglrenderer.py new file +159 -0

159 lines not on this page · raw message

support/testing/tests/package/test_virglrenderer/linux-inner.fragment new file +4 -0
new file mode 100644
index 0000000000..f2a6b539f7
@@ -0,0 +1,4 @@
+CONFIG_BLK_DEV_INITRD=y
+# The inner guest runs kmscube against the virgl renderer exposed by QEMU.
+CONFIG_DRM=y
+CONFIG_DRM_VIRTIO_GPU=y
support/testing/tests/package/test_virglrenderer/linux-outer.fragment new file +6 -0
new file mode 100644
index 0000000000..1023aedc6f
@@ -0,0 +1,6 @@
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_DRM_VGEM=y
+CONFIG_NET_9P=y
+CONFIG_NET_9P_VIRTIO=y
+CONFIG_9P_FS=y
+CONFIG_9P_FS_POSIX_ACL=y
support/testing/tests/package/test_virglrenderer/rootfs-overlay/etc/profile.d/stty-raw.sh new file +3 -0
new file mode 100644
index 0000000000..4427e5a143
@@ -0,0 +1,3 @@
+# Avoid double-cooking the inner serial console, otherwise the test
+# infrastructure cannot reliably retrieve return codes.
+grep -Fq br-inner-virgl /proc/cmdline && stty raw
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw
In reply to Joseph Kogut

Hello all,

Quoted 151 lines · Joseph Kogut

Hello,

This patch series adds support for building the virglrenderer library in buildroot.

Virglrenderer is a userspace library used to support rendering and compute in virtual machines over virtio-gpu. Virglrenderer supports serialized API level access to OpenGL and Vulkan through virgl and venus respectively, as well as mediated DRM level access using host native context [0]. Notably libkrun [1] and rutabaga_gfx [2] are also capable of utilizing virglrenderer.

The first two patches prepare for removing libepoxy's dependency on GL/EGL, and the third patch removes it. This allows virglrenderer to build with its libepoxy dependency, without actually depending on EGL/GLX.

This enables, for example, headless compute through Vulkan using Venus or host native context inside virtual machines.

The fourth patch adds the new virglrenderer package. Optional configs enable VirGL (API-level OpenGL passthrough), Venus (API-level Vulkan passthrough), hardware accelerated video encode/decode through VA-API, and DRM driver specific backends for host native context support.

The fifth patch adds an OpenGL config for qemu.

The sixth patch adds a qemu virglrenderer config that selects OpenGL support, as virgl/venus support in qemu currently requires a GL accelerated display frontend (a patch series on the mailing list [3] is proposing decoupling display GL support from Venus). Other VMMs such as libkrun don't suffer from the same coupling currently.

The seventh patch adds a new runtime test for virglrenderer with qemu using a software GL driver and a nested guest.

[0] https://www.collabora.com/news-and-blog/blog/2025/01/15/the-state-of-gfx-virtualization-using-virglrenderer/
[1] https://github.com/containers/libkrun
[2] https://github.com/magma-gpu/rutabaga_gfx
[3] https://lore.kernel.org/qemu-devel/[email protected]/

---
Changes in v8:
- Clean up Kconfig help, indentation, comments [Arnout]
- Move virglrenderer vaapi cfg, under "Other options"
[Arnout]
- Add placeholder comment for vaapi support
- Squash glibc 2.43 build fix into virglrenderer [Arnout]
- test: Split into inner/outer kernel/rootfs [Arnout]
- test: Use aarch64 build [Arnout]
- test: disable BR2_PACKAGE_QEMU_BLOBS in outer guest config
- test: switch from glmark2 to kmscube (remove udev dep) [Arnout]
- Link to v7: https://patch.msgid.link/[email protected]

Changes in v7:
- History cleanup
- Link to v6: https://patch.msgid.link/[email protected]

Changes in v6:
- Add explicit EGL dependency for weston XWayland support, and only
enable XWayland glamor when libepoxy has EGL support
- Fix stale libepoxy dependency comments in wpewebkit
- Document why libepoxy can be built without GLX or EGL support
- Improve qemu OpenGL dependency comment
- Add qemu and virglrenderer comments warning when no virglrenderer
backend is enabled
- Add a runtime test for virglrenderer using nested qemu and virgl
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Fixed authorship, Signed-off-by, and sent from address
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Removed libepoxy dependency on GL/EGL
- Introduce explicit configs for virglrenderer DRM backends, virgl
(see above note)
- Moved virglrenderer Kconfig from Libraries -> Graphics to 'Graphics
libraries and applications' (next to mesa3d && X.org)
- Add a patch from upstream virglrenderer to fix glibc 2.43 builds
- select libdrm in virglrenderer only when required (drm backends,
video)
- BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_MSM depends on !BR2_arm
- Explicitly configure GLX and/or EGL when
BR2_PACKAGE_VIRGLRENDERER_VIRGL=y
- Separate comments for qemu GL/virglrenderer [Romain]
- Split up qemu feature configs into separate commits [Romain]
- Link to v3: https://lore.kernel.org/buildroot/[email protected]/

Changes in v3:
- Bump version to v1.3.0
- Add optional deps for panfrost and i915 native context (new)
- Add config for vaapi support
- Remove GLX in favor of EGL
- Update qemu docs links, as previous ones 404 [Romain]
- Fix invalid config reference in BR2_PACKAGE_QEMU_VIRGLRENDERER
[Romain]
- Select libepoxy when enabling OpenGL support in qemu [Romain]
- Add depends on gcc >= 4.1 to virglrenderer (from meson.build)
- Add depends on libgbm to virglrenderer [Romain]
- Add comments for missing dependencies to virglrenderer Kconfig
- Select vulkan-headers when venus is enabled [Romain]
- Disable venus explicitly when the symbol isn't selected
- Link to v2: https://lore.kernel.org/buildroot/[email protected]

Changes in v2:
- Rebase onto next (python-glslang patch merged)
- Bump version to v1.2.0
- Remove hidden configs for virglrenderer vDRM backends [Romain]
- Fixed typo in qemu/Config.in [Romain]
- Split up configs for qemu OpenGL and virglrenderer support [Romain]
- More detailed qemu config help messages
- Link to v1: https://lore.kernel.org/r/[email protected]

To: [email protected]
Cc: Raphael Pavlidis <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Adrian Perez de Castro <[email protected]>
Cc: Eric Le Bihan <[email protected]>
Cc: Joseph Kogut <[email protected]>
Cc: Romain Naour <[email protected]>

---
Joseph Kogut (7):
package/weston: add EGL dependency for XWayland package/wpewebkit: fix stale libepoxy dependency comments package/libepoxy: remove gl/egl dependency package/virglrenderer: new package package/qemu: add OpenGL config
package/qemu: add virglrenderer integration support/testing: add virglrenderer test

 DEVELOPERS                                         |   2 +
 package/Config.in                                  |   1 +
 package/libepoxy/Config.in                         |   8 +-
 package/qemu/Config.in                             |  35 +++++
 package/qemu/qemu.mk                               |  15 +-
 .../0001-fix-build-with-glibc-2.43.patch           |  39 +++++
 package/virglrenderer/Config.in                    | 114 +++++++++++++++
 package/virglrenderer/virglrenderer.hash           |   5 +
 package/virglrenderer/virglrenderer.mk             |  62 ++++++++
 package/weston/Config.in                           |   6 +-
 package/wpewebkit/Config.in                        |   4 +-
 package/x11r7/xwayland/xwayland.mk                 |   2 +-
 .../testing/tests/package/test_virglrenderer.py    | 159 +++++++++++++++++++++
 .../test_virglrenderer/linux-inner.fragment        |   4 +
 .../test_virglrenderer/linux-outer.fragment        |   6 +
 .../rootfs-overlay/etc/profile.d/stty-raw.sh       |   3 +
 16 files changed, 455 insertions(+), 10 deletions(-)
Quoted 8 lines

---
base-commit: 32351f979822a0b3a45b82c2d82bdb2328b02f5a
change-id: 20260607-b4-virglrenderer-ae7616926e92

Best regards,
--
Joseph Kogut <[email protected]>

As you can probably tell from the changelog, this is actually v8 of this series. It seems the branch lost tracking of the version after rebasing and reenrolling the using b4. Sorry about that. I'll fix this if the series requires any further revisions.

Best,
Joseph
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#10 lore raw

Hello Joseph, All,

Le 08/06/2026 à 18:29, Joseph Kogut a écrit :

Quoted 163 lines

Hello all,

Quoted 151 lines · Joseph Kogut

Hello,

This patch series adds support for building the virglrenderer library in buildroot.

Virglrenderer is a userspace library used to support rendering and compute in virtual machines over virtio-gpu. Virglrenderer supports serialized API level access to OpenGL and Vulkan through virgl and venus respectively, as well as mediated DRM level access using host native context [0]. Notably libkrun [1] and rutabaga_gfx [2] are also capable of utilizing virglrenderer.

The first two patches prepare for removing libepoxy's dependency on GL/EGL, and the third patch removes it. This allows virglrenderer to build with its libepoxy dependency, without actually depending on EGL/GLX.

This enables, for example, headless compute through Vulkan using Venus or host native context inside virtual machines.

The fourth patch adds the new virglrenderer package. Optional configs enable VirGL (API-level OpenGL passthrough), Venus (API-level Vulkan passthrough), hardware accelerated video encode/decode through VA-API, and DRM driver specific backends for host native context support.

The fifth patch adds an OpenGL config for qemu.

The sixth patch adds a qemu virglrenderer config that selects OpenGL support, as virgl/venus support in qemu currently requires a GL accelerated display frontend (a patch series on the mailing list [3] is proposing decoupling display GL support from Venus). Other VMMs such as libkrun don't suffer from the same coupling currently.

The seventh patch adds a new runtime test for virglrenderer with qemu using a software GL driver and a nested guest.

[0] https://www.collabora.com/news-and-blog/blog/2025/01/15/the-state-of-gfx-virtualization-using-virglrenderer/
[1] https://github.com/containers/libkrun
[2] https://github.com/magma-gpu/rutabaga_gfx
[3] https://lore.kernel.org/qemu-devel/[email protected]/

---
Changes in v8:
- Clean up Kconfig help, indentation, comments [Arnout]
- Move virglrenderer vaapi cfg, under "Other options"
[Arnout]
- Add placeholder comment for vaapi support
- Squash glibc 2.43 build fix into virglrenderer [Arnout]
- test: Split into inner/outer kernel/rootfs [Arnout]
- test: Use aarch64 build [Arnout]
- test: disable BR2_PACKAGE_QEMU_BLOBS in outer guest config
- test: switch from glmark2 to kmscube (remove udev dep) [Arnout]
- Link to v7: https://patch.msgid.link/[email protected]

Changes in v7:
- History cleanup
- Link to v6: https://patch.msgid.link/[email protected]

Changes in v6:
- Add explicit EGL dependency for weston XWayland support, and only
enable XWayland glamor when libepoxy has EGL support
- Fix stale libepoxy dependency comments in wpewebkit
- Document why libepoxy can be built without GLX or EGL support
- Improve qemu OpenGL dependency comment
- Add qemu and virglrenderer comments warning when no virglrenderer
backend is enabled
- Add a runtime test for virglrenderer using nested qemu and virgl
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Fixed authorship, Signed-off-by, and sent from address
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Removed libepoxy dependency on GL/EGL
- Introduce explicit configs for virglrenderer DRM backends, virgl
(see above note)
- Moved virglrenderer Kconfig from Libraries -> Graphics to 'Graphics
libraries and applications' (next to mesa3d && X.org)
- Add a patch from upstream virglrenderer to fix glibc 2.43 builds
- select libdrm in virglrenderer only when required (drm backends,
video)
- BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_MSM depends on !BR2_arm
- Explicitly configure GLX and/or EGL when
BR2_PACKAGE_VIRGLRENDERER_VIRGL=y
- Separate comments for qemu GL/virglrenderer [Romain]
- Split up qemu feature configs into separate commits [Romain]
- Link to v3: https://lore.kernel.org/buildroot/[email protected]/

Changes in v3:
- Bump version to v1.3.0
- Add optional deps for panfrost and i915 native context (new)
- Add config for vaapi support
- Remove GLX in favor of EGL
- Update qemu docs links, as previous ones 404 [Romain]
- Fix invalid config reference in BR2_PACKAGE_QEMU_VIRGLRENDERER
[Romain]
- Select libepoxy when enabling OpenGL support in qemu [Romain]
- Add depends on gcc >= 4.1 to virglrenderer (from meson.build)
- Add depends on libgbm to virglrenderer [Romain]
- Add comments for missing dependencies to virglrenderer Kconfig
- Select vulkan-headers when venus is enabled [Romain]
- Disable venus explicitly when the symbol isn't selected
- Link to v2: https://lore.kernel.org/buildroot/[email protected]

Changes in v2:
- Rebase onto next (python-glslang patch merged)
- Bump version to v1.2.0
- Remove hidden configs for virglrenderer vDRM backends [Romain]
- Fixed typo in qemu/Config.in [Romain]
- Split up configs for qemu OpenGL and virglrenderer support [Romain]
- More detailed qemu config help messages
- Link to v1: https://lore.kernel.org/r/[email protected]

To: [email protected]
Cc: Raphael Pavlidis <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Adrian Perez de Castro <[email protected]>
Cc: Eric Le Bihan <[email protected]>
Cc: Joseph Kogut <[email protected]>
Cc: Romain Naour <[email protected]>

---
Joseph Kogut (7):
package/weston: add EGL dependency for XWayland package/wpewebkit: fix stale libepoxy dependency comments package/libepoxy: remove gl/egl dependency package/virglrenderer: new package package/qemu: add OpenGL config
package/qemu: add virglrenderer integration support/testing: add virglrenderer test

 DEVELOPERS                                         |   2 +
 package/Config.in                                  |   1 +
 package/libepoxy/Config.in                         |   8 +-
 package/qemu/Config.in                             |  35 +++++
 package/qemu/qemu.mk                               |  15 +-
 .../0001-fix-build-with-glibc-2.43.patch           |  39 +++++
 package/virglrenderer/Config.in                    | 114 +++++++++++++++
 package/virglrenderer/virglrenderer.hash           |   5 +
 package/virglrenderer/virglrenderer.mk             |  62 ++++++++
 package/weston/Config.in                           |   6 +-
 package/wpewebkit/Config.in                        |   4 +-
 package/x11r7/xwayland/xwayland.mk                 |   2 +-
 .../testing/tests/package/test_virglrenderer.py    | 159 +++++++++++++++++++++
 .../test_virglrenderer/linux-inner.fragment        |   4 +
 .../test_virglrenderer/linux-outer.fragment        |   6 +
 .../rootfs-overlay/etc/profile.d/stty-raw.sh       |   3 +
 16 files changed, 455 insertions(+), 10 deletions(-)
Quoted 8 lines

---
base-commit: 32351f979822a0b3a45b82c2d82bdb2328b02f5a
change-id: 20260607-b4-virglrenderer-ae7616926e92

Best regards,
--
Joseph Kogut <[email protected]>

Quoted 4 lines

As you can probably tell from the changelog, this is actually v8 of this series. It seems the branch lost tracking of the version after rebasing and reenrolling the using b4. Sorry about that. I'll fix this if the series requires any further revisions.

Here the test result here:

...
[BRTEST# env MESA_LOADER_DRIVER_OVERRIDE=virtio_gpu kmscube --vmode=640x480 --count=10

Using display 0xaaaaaedbe740 with EGL version 1.5
===================================
EGL information:
version: "1.5"
vendor: "Mesa Project"
...
===================================

OpenGL ES 2.x information:
version: "OpenGL ES 3.1 Mesa 26.1.2" shading language version: "OpenGL ES GLSL ES 3.10"
vendor: "Mesa"
renderer: "virgl (softpipe)"
...
===================================
Rendered 5 frames in 2.183177 sec (2.290241 fps) Rendered 9 frames in 3.922790 sec (2.294286 fps)

I added the new gitlab runner tag introduced recently. Since we build two defconfigs with a linux kernel and a Qemu binary, I added "gitlab-runner:
2xlarge". Without any tag, the test would build on "small" runner that is really to slow to build such test case.

Applied to master, Thanks!

Best regards,
Romain

Quoted 7 lines

Best,
Joseph
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#11 lore raw

Hello Romain, All,

Quoted 197 lines · Romain Naour

Hello Joseph, All,

Quoted 163 lines · Joseph Kogut

Hello all,

Quoted 151 lines · Joseph Kogut

Hello,

This patch series adds support for building the virglrenderer library in buildroot.

Virglrenderer is a userspace library used to support rendering and compute in virtual machines over virtio-gpu. Virglrenderer supports serialized API level access to OpenGL and Vulkan through virgl and venus respectively, as well as mediated DRM level access using host native context [0]. Notably libkrun [1] and rutabaga_gfx [2] are also capable of utilizing virglrenderer.

The first two patches prepare for removing libepoxy's dependency on GL/EGL, and the third patch removes it. This allows virglrenderer to build with its libepoxy dependency, without actually depending on EGL/GLX.

This enables, for example, headless compute through Vulkan using Venus or host native context inside virtual machines.

The fourth patch adds the new virglrenderer package. Optional configs enable VirGL (API-level OpenGL passthrough), Venus (API-level Vulkan passthrough), hardware accelerated video encode/decode through VA-API, and DRM driver specific backends for host native context support.

The fifth patch adds an OpenGL config for qemu.

The sixth patch adds a qemu virglrenderer config that selects OpenGL support, as virgl/venus support in qemu currently requires a GL accelerated display frontend (a patch series on the mailing list [3] is proposing decoupling display GL support from Venus). Other VMMs such as libkrun don't suffer from the same coupling currently.

The seventh patch adds a new runtime test for virglrenderer with qemu using a software GL driver and a nested guest.

[0] https://www.collabora.com/news-and-blog/blog/2025/01/15/the-state-of-gfx-virtualization-using-virglrenderer/
[1] https://github.com/containers/libkrun
[2] https://github.com/magma-gpu/rutabaga_gfx
[3] https://lore.kernel.org/qemu-devel/[email protected]/

---
Changes in v8:
- Clean up Kconfig help, indentation, comments [Arnout]
- Move virglrenderer vaapi cfg, under "Other options"
[Arnout]
- Add placeholder comment for vaapi support
- Squash glibc 2.43 build fix into virglrenderer [Arnout]
- test: Split into inner/outer kernel/rootfs [Arnout]
- test: Use aarch64 build [Arnout]
- test: disable BR2_PACKAGE_QEMU_BLOBS in outer guest config
- test: switch from glmark2 to kmscube (remove udev dep) [Arnout]
- Link to v7: https://patch.msgid.link/[email protected]

Changes in v7:
- History cleanup
- Link to v6: https://patch.msgid.link/[email protected]

Changes in v6:
- Add explicit EGL dependency for weston XWayland support, and only
enable XWayland glamor when libepoxy has EGL support
- Fix stale libepoxy dependency comments in wpewebkit
- Document why libepoxy can be built without GLX or EGL support
- Improve qemu OpenGL dependency comment
- Add qemu and virglrenderer comments warning when no virglrenderer
backend is enabled
- Add a runtime test for virglrenderer using nested qemu and virgl
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Fixed authorship, Signed-off-by, and sent from address
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Removed libepoxy dependency on GL/EGL
- Introduce explicit configs for virglrenderer DRM backends, virgl
(see above note)
- Moved virglrenderer Kconfig from Libraries -> Graphics to 'Graphics
libraries and applications' (next to mesa3d && X.org)
- Add a patch from upstream virglrenderer to fix glibc 2.43 builds
- select libdrm in virglrenderer only when required (drm backends,
video)
- BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_MSM depends on !BR2_arm
- Explicitly configure GLX and/or EGL when
BR2_PACKAGE_VIRGLRENDERER_VIRGL=y
- Separate comments for qemu GL/virglrenderer [Romain]
- Split up qemu feature configs into separate commits [Romain]
- Link to v3: https://lore.kernel.org/buildroot/[email protected]/

Changes in v3:
- Bump version to v1.3.0
- Add optional deps for panfrost and i915 native context (new)
- Add config for vaapi support
- Remove GLX in favor of EGL
- Update qemu docs links, as previous ones 404 [Romain]
- Fix invalid config reference in BR2_PACKAGE_QEMU_VIRGLRENDERER
[Romain]
- Select libepoxy when enabling OpenGL support in qemu [Romain]
- Add depends on gcc >= 4.1 to virglrenderer (from meson.build)
- Add depends on libgbm to virglrenderer [Romain]
- Add comments for missing dependencies to virglrenderer Kconfig
- Select vulkan-headers when venus is enabled [Romain]
- Disable venus explicitly when the symbol isn't selected
- Link to v2: https://lore.kernel.org/buildroot/[email protected]

Changes in v2:
- Rebase onto next (python-glslang patch merged)
- Bump version to v1.2.0
- Remove hidden configs for virglrenderer vDRM backends [Romain]
- Fixed typo in qemu/Config.in [Romain]
- Split up configs for qemu OpenGL and virglrenderer support [Romain]
- More detailed qemu config help messages
- Link to v1: https://lore.kernel.org/r/[email protected]

To: [email protected]
Cc: Raphael Pavlidis <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Adrian Perez de Castro <[email protected]>
Cc: Eric Le Bihan <[email protected]>
Cc: Joseph Kogut <[email protected]>
Cc: Romain Naour <[email protected]>

---
Joseph Kogut (7):
package/weston: add EGL dependency for XWayland package/wpewebkit: fix stale libepoxy dependency comments package/libepoxy: remove gl/egl dependency package/virglrenderer: new package package/qemu: add OpenGL config
package/qemu: add virglrenderer integration support/testing: add virglrenderer test

 DEVELOPERS                                         |   2 +
 package/Config.in                                  |   1 +
 package/libepoxy/Config.in                         |   8 +-
 package/qemu/Config.in                             |  35 +++++
 package/qemu/qemu.mk                               |  15 +-
 .../0001-fix-build-with-glibc-2.43.patch           |  39 +++++
 package/virglrenderer/Config.in                    | 114 +++++++++++++++
 package/virglrenderer/virglrenderer.hash           |   5 +
 package/virglrenderer/virglrenderer.mk             |  62 ++++++++
 package/weston/Config.in                           |   6 +-
 package/wpewebkit/Config.in                        |   4 +-
 package/x11r7/xwayland/xwayland.mk                 |   2 +-
 .../testing/tests/package/test_virglrenderer.py    | 159 +++++++++++++++++++++
 .../test_virglrenderer/linux-inner.fragment        |   4 +
 .../test_virglrenderer/linux-outer.fragment        |   6 +
 .../rootfs-overlay/etc/profile.d/stty-raw.sh       |   3 +
 16 files changed, 455 insertions(+), 10 deletions(-)
Quoted 8 lines

---
base-commit: 32351f979822a0b3a45b82c2d82bdb2328b02f5a
change-id: 20260607-b4-virglrenderer-ae7616926e92

Best regards,
--
Joseph Kogut <[email protected]>

Quoted 4 lines

As you can probably tell from the changelog, this is actually v8 of this series. It seems the branch lost tracking of the version after rebasing and reenrolling the using b4. Sorry about that. I'll fix this if the series requires any further revisions.

Here the test result here:

...
[BRTEST# env MESA_LOADER_DRIVER_OVERRIDE=virtio_gpu kmscube --vmode=640x480 --count=10

Using display 0xaaaaaedbe740 with EGL version 1.5
===================================
EGL information:
version: "1.5"
vendor: "Mesa Project"
...
===================================

OpenGL ES 2.x information:
version: "OpenGL ES 3.1 Mesa 26.1.2" shading language version: "OpenGL ES GLSL ES 3.10"
vendor: "Mesa"
renderer: "virgl (softpipe)"
...
===================================
Rendered 5 frames in 2.183177 sec (2.290241 fps) Rendered 9 frames in 3.922790 sec (2.294286 fps)

Quoted 5 lines

I added the new gitlab runner tag introduced recently. Since we build two defconfigs with a linux kernel and a Qemu binary, I added "gitlab-runner:
2xlarge". Without any tag, the test would build on "small" runner that is really to slow to build such test case.

Good call! It's not a small build.

Quoted 2 lines

Applied to master, Thanks!

Great news, you've made my Monday!

Thanks for the reviews and to everyone who helped make this happen, I appreciate it.

Best regards,
Joseph
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot