Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/6] runqemu: add options that enable virgl with the SDL frontend
@ 2019-10-31  9:36 Alexander Kanavin
  2019-10-31  9:36 ` [PATCH 2/6] selftest: skip virgl test on centos 7 entirely Alexander Kanavin
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Alexander Kanavin @ 2019-10-31  9:36 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 scripts/runqemu | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index a05facd0db6..5c56c3fe6c1 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -67,9 +67,9 @@ of the following environment variables (in any order):
     nographic - disable video console
     sdl - choose the SDL UI frontend
     gtk - choose the Gtk UI frontend
-    gl - enable virgl-based GL acceleration (also needs gtk option)
-    gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk option)
-    egl-headless - enable headless EGL output; use vnc or spice to see it
+    gl - enable virgl-based GL acceleration (also needs gtk or sdl options)
+    gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk or sdl options)
+    egl-headless - enable headless EGL output; use vnc (via publicvnc option) 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)
     slirp - enable user networking, no root privileges is required
@@ -437,7 +437,12 @@ class BaseConfig(object):
                 self.qemu_opt_script += ' -nographic'
                 self.kernel_cmdline_script += ' console=ttyS0'
             elif arg == 'sdl':
-                self.qemu_opt_script += ' -display sdl'
+                if 'gl' in sys.argv[1:]:
+                    self.qemu_opt_script += ' -vga virtio -display sdl,gl=on'
+                elif 'gl-es' in sys.argv[1:]:
+                    self.qemu_opt_script += ' -vga virtio -display sdl,gl=es'
+                else:
+                    self.qemu_opt_script += ' -display sdl'
             elif arg == 'gtk':
                 if 'gl' in sys.argv[1:]:
                     self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-11-08 18:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31  9:36 [PATCH 1/6] runqemu: add options that enable virgl with the SDL frontend Alexander Kanavin
2019-10-31  9:36 ` [PATCH 2/6] selftest: skip virgl test on centos 7 entirely Alexander Kanavin
2019-10-31  9:36 ` [PATCH 3/6] oe-selftest: extend virgl gtk test to also check the SDL option Alexander Kanavin
2019-11-01 17:46   ` Ross Burton
2019-11-02 12:07     ` Alexander Kanavin
2019-11-02 22:29       ` Alexander Kanavin
2019-11-04 21:10         ` Alexander Kanavin
2019-11-08 17:20           ` Michael Halstead
2019-11-08 17:55             ` Alexander Kanavin
2019-11-08 18:01               ` Michael Halstead
2019-11-08 18:16                 ` Alexander Kanavin
2019-10-31  9:36 ` [PATCH 4/6] gcr: update to 3.34.0 Alexander Kanavin
2019-10-31  9:56   ` Andreas Müller
2019-10-31  9:58     ` Alexander Kanavin
2019-10-31 10:02       ` Andreas Müller
2019-10-31  9:36 ` [PATCH 5/6] btrfs-tools: update to 5.3 Alexander Kanavin
2019-10-31  9:36 ` [PATCH 6/6] libmodulemd-v1: update to 1.8.16 Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox