Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu: support OpenGL acceleration (VirGL) #2086

Open
AkihiroSuda opened this issue Dec 18, 2023 · 6 comments
Open

qemu: support OpenGL acceleration (VirGL) #2086

AkihiroSuda opened this issue Dec 18, 2023 · 6 comments
Labels
component/qemu QEMU enhancement New feature or request roadmap Roadmap

Comments

@AkihiroSuda
Copy link
Member

UTM seems to have been supporting VirGL with forked repos:
https://github.com/utmapp/UTM/blob/62bd84c78c045870c580df34c1ba233d75e02995/patches/sources#L38-L45

I'm not sure we can just use them in Homebrew's QEMU. Maybe we need a custom Tap.

@AkihiroSuda AkihiroSuda added enhancement New feature or request component/qemu QEMU labels Dec 18, 2023
@afbjorklund

This comment was marked as off-topic.

@afbjorklund
Copy link
Member

afbjorklund commented Dec 18, 2023

If I understand correctly, you need to configure the QEMU build

--enable-virglrenderer

And then make sure to use the new device, when starting the VM

-device virtio-gpu-gl


https://www.qemu.org/docs/master/system/devices/virtio-gpu.html

There should be a virtio-gpu for testing, that uses software rendering.

EDIT: Also need to set gl=on option, for the default display. Otherwise:

qemu-system-x86_64: -device virtio-gpu-gl: opengl is not available

@AkihiroSuda
Copy link
Member Author

Support for Venus was recently merged to QEMU: qemu/qemu@e4bad9c

@AkihiroSuda AkihiroSuda added the roadmap Roadmap label Nov 1, 2024
@AkihiroSuda
Copy link
Member Author

Patches in https://github.com/akihikodaki/virglrenderer/commits/macos/ are still not upstreamed to https://gitlab.freedesktop.org/virgl/virglrenderer
(Where is the merge request?)

@AkihiroSuda
Copy link
Member Author

@akihikodaki May I ask if you are planning to submit your macOS patches in https://github.com/akihikodaki/virglrenderer/commits/macos/ to the upstream repo (https://gitlab.freedesktop.org/virgl/virglrenderer)?
Thanks!

@akihikodaki
Copy link

@AkihiroSuda It depends on a libepoxy change which has not landed yet: anholt/libepoxy#239
cc: @ebassi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/qemu QEMU enhancement New feature or request roadmap Roadmap
Projects
None yet
Development

No branches or pull requests

3 participants