git clone https://garage44.eu/jeroen/pinnacle.git.. /tools/macos-venus/qemu-venus-without-gl.patch
--- a/hw/display/virtio-gpu-gl.c
+++ b/hw/display/virtio-gpu-gl.c
@@ -124,7 +124,8 @@
return;
}
- if (!display_opengl) {
+ /* Venus alone needs no OpenGL display: virglrenderer runs it without vrend. */
+ if (!display_opengl && !virtio_gpu_venus_enabled(g->parent_obj.conf)) {
error_setg(errp,
"The display backend does not have OpenGL support enabled");
error_append_hint(errp,
--- a/hw/display/virtio-gpu-virgl.c
+++ b/hw/display/virtio-gpu-virgl.c
@@ -21,6 +21,7 @@
#include "hw/virtio/virtio-gpu-pixman.h"
#include "ui/egl-helpers.h"
+#include "system/system.h"
#include <virglrenderer.h>
@@ -1461,6 +1462,9 @@
#if VIRGL_VERSION_MAJOR >= 1
if (virtio_gpu_venus_enabled(g->parent_obj.conf)) {
flags |= VIRGL_RENDERER_VENUS | VIRGL_RENDERER_RENDER_SERVER;
+ if (!display_opengl) {
+ flags |= VIRGL_RENDERER_NO_VIRGL;
+ }
}
if (virtio_gpu_drm_enabled(g->parent_obj.conf)) {
flags |= VIRGL_RENDERER_DRM;