]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
ui: egl-headless requires dmabuf support
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 17 May 2017 12:27:44 +0000 (14:27 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 19 May 2017 08:46:00 +0000 (10:46 +0200)
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170517122744.3541-1-kraxel@redhat.com

ui/Makefile.objs
vl.c

index aac6ae8befa7c0e9931a611839cf23ff03452e01..3369451285ed06a1d73eb64e9d5e9ed2d5af9171 100644 (file)
@@ -33,7 +33,7 @@ common-obj-y += shader.o
 common-obj-y += console-gl.o
 common-obj-y += egl-helpers.o
 common-obj-y += egl-context.o
-common-obj-y += egl-headless.o
+common-obj-$(CONFIG_OPENGL_DMABUF) += egl-headless.o
 ifeq ($(CONFIG_GTK_GL),y)
 common-obj-$(CONFIG_GTK) += gtk-gl-area.o
 else
diff --git a/vl.c b/vl.c
index 1512df6e9ef340a8e5b615b9f6015105ce8eb593..ca4a5d679ce1bc0341f188d0ab730d9692507883 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2129,7 +2129,7 @@ static DisplayType select_display(const char *p)
             exit(1);
         }
     } else if (strstart(p, "egl-headless", &opts)) {
-#ifdef CONFIG_OPENGL
+#ifdef CONFIG_OPENGL_DMABUF
         request_opengl = 1;
         display_opengl = 1;
         display = DT_EGL;
@@ -4668,7 +4668,7 @@ int main(int argc, char **argv, char **envp)
         qemu_spice_display_init();
     }
 
-#ifdef CONFIG_OPENGL
+#ifdef CONFIG_OPENGL_DMABUF
     if (display_type == DT_EGL) {
         egl_headless_init();
     }