aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-09-23 09:50:28 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-09-28 12:49:36 +0200
commit4423184376dc85849b2d7b4660e7feeb2b38bf6f (patch)
tree7aaed8ece9a74d0db461b2dd657dbf5a9e39bbcb /include/ui
parentf607867cefdbf1bcb2bd4449ba96cae4994f6224 (diff)
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 <kraxel@redhat.com> Message-id: 1474617028-3979-3-git-send-email-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/spice-display.h5
1 files changed, 4 insertions, 1 deletions
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
};