]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: make gl options gtk+-specific
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 3 Mar 2019 11:27:45 +0000 (12:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Mar 2019 14:13:27 +0000 (14:13 +0000)
If in the future GL is enabled for SDL frontend, or some other
frontend, it would be useful to be able to differentiate.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index bbf539a8e6778594b38064d15b8600ab854d8d58..c0e569c44cb46923fa43dba113d3cd0de8b975c5 100755 (executable)
@@ -75,8 +75,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
-    gl - enable virgl-based GL acceleration
-    gl-es - enable virgl-based GL acceleration, using OpenGL ES
+    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
     serial - enable a serial console on /dev/ttyS0
     serialstdio - enable a serial console on the console (regardless of graphics mode)
@@ -407,9 +407,9 @@ class BaseConfig(object):
                 self.kernel_cmdline_script += ' console=ttyS0'
             elif arg == 'sdl':
                 self.qemu_opt_script += ' -display sdl'
-            elif arg == 'gl':
+            elif arg == 'gtk-gl':
                 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
-            elif arg == 'gl-es':
+            elif arg == 'gtk-gl-es':
                 self.qemu_opt_script += ' -vga virtio -display gtk,gl=es'
             elif arg == 'egl-headless':
                 self.qemu_opt_script += ' -vga virtio -display egl-headless'