From 4423184376dc85849b2d7b4660e7feeb2b38bf6f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 23 Sep 2016 09:50:28 +0200 Subject: spice/gl: render DisplaySurface via opengl This switches over spice (in opengl mode) to render DisplaySurface updates into a opengl texture, using the helper functions in ui/console-gl.c. With this patch applied spice (with gl=on) will stop using qxl rendering ops, it will use dma-buf passing all the time, i.e. for bios/bootloader (before virtio-gpu driver is loaded) too. This should improve performance even using spice (with gl=on) with non-accelerated stdvga because we stop squeezing all display updates through a unix/tcp socket and basically using a shared memory transport instead. Signed-off-by: Gerd Hoffmann Message-id: 1474617028-3979-3-git-send-email-kraxel@redhat.com --- include/ui/spice-display.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ui/spice-display.h b/include/ui/spice-display.h index 42e0fdf775..184d4c373a 100644 --- a/include/ui/spice-display.h +++ b/include/ui/spice-display.h @@ -119,7 +119,10 @@ struct SimpleSpiceDisplay { /* opengl rendering */ QEMUBH *gl_unblock_bh; QEMUTimer *gl_unblock_timer; - int dmabuf_fd; + ConsoleGLState *gls; + int gl_updates; + bool have_scanout; + bool have_surface; #endif }; -- cgit v1.2.3-55-g7522