From 91e7e1895531abd279bebe82cb369012a8bd05aa Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 25 Oct 2021 14:03:59 +0100 Subject: [PATCH] Add support for virtio-vga-gl on QEMU 6.1 and newer. Close #107 --- quickemu | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index cece5a5..f7c046d 100755 --- a/quickemu +++ b/quickemu @@ -218,7 +218,6 @@ function vm_boot() { local MOUSE="usb-tablet" local NET_DEVICE="virtio-net" local OSK="" - local QEMU_VER="" local SMM="off" local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci" local VIDEO="" @@ -683,7 +682,11 @@ function vm_boot() { fi if [ "${GL}" == "on" ] && [[ "${DISPLAY_DEVICE}" == *"virtio"* ]]; then - DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on" + if [ "${QEMU_VER_SHORT}" -ge 61 ]; then + DISPLAY_DEVICE="${DISPLAY_DEVICE}-gl" + else + DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on" + fi echo ", GL (${GL}), VirGL (on)" else echo ", GL (${GL}), VirGL (off)"