diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-08 10:06:17 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-12 09:01:56 +0100 |
commit | b153f9019b5fcf7c085de688b123eb34f924f870 (patch) | |
tree | ada675512adad927e1b64232bcdbb33f3563fb44 /include/ui | |
parent | cd2452b279b217d7e6ee48478d6bb3109f388fcb (diff) | |
download | qemu-b153f9019b5fcf7c085de688b123eb34f924f870.zip |
spice: add cursor_dmabuf support
Add support for cursor dmabufs. qemu has to render the cursor for
that, so in case a cursor is present qemu allocates a new dmabuf, blits
the scanout, blends in the pointer and passes on the new dmabuf to
spice-server. Without cursor qemu continues to simply pass on the
scanout dmabuf as-is.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20180308090618.30147-4-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/spice-display.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ui/spice-display.h b/include/ui/spice-display.h index 6b5c73b21c..87a84a59d4 100644 --- a/include/ui/spice-display.h +++ b/include/ui/spice-display.h @@ -122,6 +122,15 @@ struct SimpleSpiceDisplay { int gl_updates; bool have_scanout; bool have_surface; + + QemuDmaBuf *guest_dmabuf; + bool guest_dmabuf_refresh; + bool render_cursor; + + egl_fb guest_fb; + egl_fb blit_fb; + egl_fb cursor_fb; + bool have_hot; #endif }; |