summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-10-27 22:18:29 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-30 18:56:47 +0100
commit05ce40b2ce21a0a9c16ad55711c1ae2c9d906b96 (patch)
treeb9b13660cd6e72c0b369d33c72a039afc43edd4a /scripts/runqemu
parentd78650b980853e17e78555515a7830fd75178923 (diff)
downloadpoky-05ce40b2ce21a0a9c16ad55711c1ae2c9d906b96.tar.gz
runqemu: unbreak non-gl displays
Correct two issues: 1. Looking for dri.pc is only needed when gl is enabled. 2. virtio-vga-gl works only when gl is enabled via -display, otherwise virtio-vga needs to be selected. (From OE-Core rev: d6d5fe44510d2087b735758ac85e804533a1778c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 54f2336ba9..1143509975 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1349,9 +1349,14 @@ class BaseConfig(object):
1349 raise RunQemuError('Option gl/gl-es needs gtk or sdl option.') 1349 raise RunQemuError('Option gl/gl-es needs gtk or sdl option.')
1350 1350
1351 if self.sdl == True or self.gtk == True or self.egl_headless == True: 1351 if self.sdl == True or self.gtk == True or self.egl_headless == True:
1352 self.set_dri_path() 1352 if self.gl or self.gl_es or self.egl_headless:
1353 self.qemu_opt += ' -device virtio-vga-gl -display ' 1353 self.qemu_opt += ' -device virtio-vga-gl '
1354 else:
1355 self.qemu_opt += ' -device virtio-vga '
1356
1357 self.qemu_opt += '-display '
1354 if self.egl_headless == True: 1358 if self.egl_headless == True:
1359 self.set_dri_path()
1355 self.qemu_opt += 'egl-headless,' 1360 self.qemu_opt += 'egl-headless,'
1356 else: 1361 else:
1357 if self.sdl == True: 1362 if self.sdl == True:
@@ -1360,8 +1365,10 @@ class BaseConfig(object):
1360 self.qemu_opt += 'gtk,' 1365 self.qemu_opt += 'gtk,'
1361 1366
1362 if self.gl == True: 1367 if self.gl == True:
1368 self.set_dri_path()
1363 self.qemu_opt += 'gl=on,' 1369 self.qemu_opt += 'gl=on,'
1364 elif self.gl_es == True: 1370 elif self.gl_es == True:
1371 self.set_dri_path()
1365 self.qemu_opt += 'gl=es,' 1372 self.qemu_opt += 'gl=es,'
1366 self.qemu_opt += 'show-cursor=on' 1373 self.qemu_opt += 'show-cursor=on'
1367 1374