Add support for virtio-vga-gl on QEMU 6.1 and newer. Close #107

This commit is contained in:
Martin Wimpress 2021-10-25 14:03:59 +01:00
parent 4003144cf6
commit 91e7e18955
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 5 additions and 2 deletions

View File

@ -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)"