mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/qemu: add virglrenderer integration
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> Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
committed by
Romain Naour
parent
4c370d3d8f
commit
899918c53b
@@ -126,6 +126,27 @@ config BR2_PACKAGE_QEMU_OPENGL
|
|||||||
comment "OpenGL support needs an OpenGL and/or OpenGL EGL backend"
|
comment "OpenGL support needs an OpenGL and/or OpenGL EGL backend"
|
||||||
depends on !(BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
|
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
|
config BR2_PACKAGE_QEMU_FDT
|
||||||
bool "Enable FDT"
|
bool "Enable FDT"
|
||||||
select BR2_PACKAGE_DTC
|
select BR2_PACKAGE_DTC
|
||||||
|
|||||||
@@ -279,6 +279,13 @@ else
|
|||||||
QEMU_OPTS += --disable-opengl
|
QEMU_OPTS += --disable-opengl
|
||||||
endif
|
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)
|
ifeq ($(BR2_STATIC_LIBS),y)
|
||||||
QEMU_OPTS += --static
|
QEMU_OPTS += --static
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user