Enable opengl virtio-gpu virgl vulkan in windows build
Goal
Presently, there seems that GPU/HW graphics acceleration is not enabled for qemu windows build. This issue is filed to document the progress of the request to Enable virgl/ make virgl work for linux guests on windows-host
Thx
Technical details
I read recently that
- Microsoft merged d3d12 backend into Mesa-21, perhaps as part of its WSL2/WSLg effort.
https://www.phoronix.com/scan.php?page=news_item&px=Mesa-21.0-Direct3D-12-Gallium3D - Google venus project merged into qemu mainline.
https://www.phoronix.com/scan.php?page=news_item&px=VirtIO-GPU-Venus-Vulkan
So wouldn't linking qemu with a Mesa libary, enabling d3d12 backend, enabling virtio-gpu do it ? https://github.com/pal1000/mesa-dist-win
Additional information
PS E:\scoopg\apps\qemu\current> ./qemu-system-x86_64.exe -drive file=E:\groot_02\vdisks\gparted-live.iso,if=virtio -boot c -m 4096 -machine type=pc,accel=whpx,kernel-irqchip=off -smp 8,sockets=1,cores=8,threads=1 -vga virtio -display sdl,gl=on
E:\scoopg\apps\qemu\current\qemu-system-x86_64.exe: OpenGL support is disabled
PS E:\scoopg\apps\qemu\current> E:\scoopg\apps\qemu\current\qemu-system-x86_64.exe --version
QEMU emulator version 6.0.93 (v6.1.0-rc3-11879-ge232c1bc00-dirty)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
More links
- 20210311 Marc-André Lureau - lore.kernel.org/qemu-devel - "3D Acceleration for Windows hosts"
<quote>OpenGL drivers on Windows have been notoriously bad, and you may need to use ANGLE</quote>
https://lore.kernel.org/qemu-devel/CAOEv1kYzRWDzpzgMt0bGDEVKrEjDYXTJNqYdsXj+8f2L6uYieA@mail.gmail.com/T/#m6205777978c7b1aec1ac0362f0d4f6ff5d325f6d - 20220203 Mesa's "Dozen" Close To Providing Vulkan Over Direct3D 12
https://www.phoronix.com/scan.php?page=news_item&px=Mesa-Dozen-VLK-D3D12 - 20220204 Microsoft's Mesa D3D12 driver now Allows OpenGL 4.2
https://www.phoronix.com/scan.php?page=news_item&px=OpenGL-4.2-Mesa-D3D12 - 20220422 Mesa-22.1-rc3 Zink/Kopper On Windows (opengl on vulkan via Zink on windows)
https://www.phoronix.com/scan.php?page=news_item&px=Zink-Windows-Kopper-Progress - 20220420 Zink OpenGL-On-Vulkan Making Progress On Windows
https://www.phoronix.com/scan.php?page=news_item&px=Zink-Windows-Kopper-Progress - 20220607 SDL adds a DirectX-12 Renderer Backend
https://www.phoronix.com/scan.php?page=news_item&px=SDL2-Adds-DX12-Backend - 20221021 Microsoft add Mesa support for building against DirectX 12 Agility SDK
https://www.phoronix.com/news/Microsoft-Mesa-Agility-SDK - 20230123 Microsoft's Dzn Mesa Driver Already Hits Vulkan 1.2
https://www.phoronix.com/news/Microsoft-Dzn-Vulkan-1.2 - 20230528 Mesa 23.2 Virgl Lands Support For OpenGL 4.6 Inside Virtual Machines
https://www.phoronix.com/news/Mesa-23.2-Virgl-OpenGL-4.6-VMs - 20231109 Microsoft Gets OpenGL 4.3 Implemented Atop Direct3D 12 With Mesa GLOn12
https://www.phoronix.com/news/OpenGL-4.3-D3D12-Mesa - 20231114 Microsoft Gets OpenGL 4.4 Running Atop Direct3D 12 Using Mesa, OpenGL 4.5 Inbound
https://www.phoronix.com/news/OpenGL-4.4-On-D3D12 - 20231115 Microsoft Achieves OpenGL 4.5 Atop Direct3D 12 With Mesa
https://www.phoronix.com/news/OpenGL-4.5-D3D12-Mesa - 20231119 Microsoft Enables OpenGL 4.6 Support Over Direct3D 12
https://www.phoronix.com/news/Microsoft-OpenGL-4.6-D3D12