From 08bfe76f0b0c3dad82e539f700c75e1d1a728b2a Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 28 Feb 2019 14:35:59 +0000 Subject: runqemu: add options for sdl-gl, sdl-gl-es Signed-off-by: Martin Jansa --- scripts/runqemu | 6 ++++++ 1 file changed, 6 insertions(+) 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': -- cgit 1.2.3-korg