Public bug reported:

Currently the mesa package supports OpenGL (VirGL) and Vulkan (Venus)
inside VMs with a VirtIO GPU device. A more efficient option is to use
the amdgpu native context; see
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21658.

In mesa 26.3.1 this requires the build flag -Damdgpu-virtio=true. In
main I think the flag has changed to something like -Damd-
options=virtio.

Use case: in Workshop we'd like to enable VirtIO GPU once LXD adds
support for VirGL in its QEMU build, this is tentatively planned for the
27.10 cycle at best. If we could get native context into mesa at around
the same time it would remove the need to distribute it separately. It
can probably wait until 28.04 since I imagine we'll still need to
provide custom mesa SDKs for 26.04 and below.

I don't have an Intel GPU to test, but there's another option intel-
virtio-experimental; once it becomes stable it might be worth enabling
as well.

My setup for testing this is here if it helps:
https://github.com/jonathan-conder/lxd/tree/feature/vm-gpus/lxd-qemu-
snap.

** Affects: mesa (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amdgpu lxd mesa virtio workshop

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2189472

Title:
  Feature request: enable amdgpu native context for VirtIO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/2189472/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to