summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2019-02-28 14:35:59 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2020-09-16 15:25:19 +0200
commit08bfe76f0b0c3dad82e539f700c75e1d1a728b2a (patch)
tree645ebd3cd288c80837bd13d4b54964448fbd13fd
parent70de900e56d084044d0f0e673e7f340fa31cdf39 (diff)
downloadopenembedded-core-contrib-08bfe76f0b0c3dad82e539f700c75e1d1a728b2a.tar.gz
openembedded-core-contrib-08bfe76f0b0c3dad82e539f700c75e1d1a728b2a.tar.bz2
openembedded-core-contrib-08bfe76f0b0c3dad82e539f700c75e1d1a728b2a.zip
runqemu: add options for sdl-gl, sdl-gl-es
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rwxr-xr-xscripts/runqemu6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index af90c010da..8f31fc822c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -65,6 +65,8 @@ of the following environment variables (in any order):
Simplified QEMU command-line options can be passed with:
nographic - disable video console
sdl - choose the SDL frontend instead of the Gtk+ default
+ sdl-gl - enable virgl-based GL acceleration using SDL frontend
+ sdl-gl-es - enable virgl-based GL acceleration, using OpenGL ES and SDL frontend
gtk-gl - enable virgl-based GL acceleration using Gtk+ frontend
gtk-gl-es - enable virgl-based GL acceleration, using OpenGL ES and Gtk+ frontend
egl-headless - enable headless EGL output; use vnc or spice to see it
@@ -397,6 +399,10 @@ class BaseConfig(object):
self.kernel_cmdline_script += ' console=ttyS0'
elif arg == 'sdl':
self.qemu_opt_script += ' -display sdl'
+ elif arg == 'sdl-gl':
+ self.qemu_opt_script += ' -vga virtio -display sdl,gl=on'
+ elif arg == 'sdl-gl-es':
+ self.qemu_opt_script += ' -vga virtio -display sdl,gl=es'
elif arg == 'gtk-gl':
self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
elif arg == 'gtk-gl-es':