mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add support for virtio-vga-gl on QEMU 6.1 and newer. Close #107
This commit is contained in:
parent
4003144cf6
commit
91e7e18955
1 changed files with 5 additions and 2 deletions
7
quickemu
7
quickemu
|
@ -218,7 +218,6 @@ function vm_boot() {
|
||||||
local MOUSE="usb-tablet"
|
local MOUSE="usb-tablet"
|
||||||
local NET_DEVICE="virtio-net"
|
local NET_DEVICE="virtio-net"
|
||||||
local OSK=""
|
local OSK=""
|
||||||
local QEMU_VER=""
|
|
||||||
local SMM="off"
|
local SMM="off"
|
||||||
local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"
|
local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"
|
||||||
local VIDEO=""
|
local VIDEO=""
|
||||||
|
@ -683,7 +682,11 @@ function vm_boot() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${GL}" == "on" ] && [[ "${DISPLAY_DEVICE}" == *"virtio"* ]]; then
|
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)"
|
echo ", GL (${GL}), VirGL (on)"
|
||||||
else
|
else
|
||||||
echo ", GL (${GL}), VirGL (off)"
|
echo ", GL (${GL}), VirGL (off)"
|
||||||
|
|
Loading…
Reference in a new issue