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 <ollieparanoid@postmarketos.org>
Tested-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221210185021.3546-1-clayton@craftyguy.net%3E
This commit is contained in:
Clayton Craft 2022-12-10 10:50:21 -08:00 committed by Oliver Smith
parent 42feaf0d49
commit 917ff92f63
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 1 deletions

View File

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