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:
parent
42feaf0d49
commit
917ff92f63
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue