From 917ff92f6312dbf2d97e1bd5d3acf891bee53012 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sat, 10 Dec 2022 10:50:21 -0800 Subject: [PATCH] pmb.qemu.run: fix 3d accel on amd64 Recent changes to qemu and Alpine packaging now require using the virtio-vga-gl device and installing -gl packages to get virglrenderer support. Without this, wlroots fails to get an EGL context (among other problems you'd expect by not having a useful GPU around...) Reviewed-by: Oliver Smith Tested-by: Oliver Smith Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221210185021.3546-1-clayton@craftyguy.net%3E --- pmb/qemu/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index be922662..e9a6d00d 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -188,7 +188,7 @@ def command_qemu(args, arch, img_path, img_path_2nd=None): command += ["-device", "virtio-net-pci,netdev=net"] if arch == "x86_64": - command += ["-vga", "virtio"] + command += ["-device", "virtio-vga-gl"] elif arch == "aarch64": command += ["-M", "virt"] command += ["-cpu", "cortex-a57"] @@ -286,8 +286,10 @@ def install_depends(args, arch): "qemu-audio-pa", "qemu-audio-sdl", "qemu-hw-display-virtio-gpu", + "qemu-hw-display-virtio-gpu-gl", "qemu-hw-display-virtio-gpu-pci", "qemu-hw-display-virtio-vga", + "qemu-hw-display-virtio-vga-gl", "qemu-system-" + arch, "qemu-ui-gtk", "qemu-ui-opengl",