knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
414 stars 67 forks source link

`opengl is not available` #70

Closed bkchr closed 2 years ago

bkchr commented 2 years ago

Hey, when trying to use virtio-gpu-gl-pci with -display cocoa,gl=off I just get the error message:

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

Any idea what I could be missing? Do I may need to enable Opengl in Mac os somewhere?

DUOLabs333 commented 2 years ago

You must use -display cocoa,gl=es

bkchr commented 2 years ago

Why? The original gist lists 3 different values.

bkchr commented 2 years ago

See https://gist.github.com/akihikodaki/87df4149e7ca87f18dc56807ec5a1bc5#choosing-opengl-profile

DUOLabs333 commented 2 years ago

Also, is the device listed before or after the display?

bkchr commented 2 years ago

Before.

DUOLabs333 commented 2 years ago

Does using gl=es work?

bkchr commented 2 years ago

Yes that works, but I get a lot of unsupported shader errors. So, I wanted to try one of the other.

DUOLabs333 commented 2 years ago

Does gl=core work?