xemu/include/ui
Marc-André Lureau 3cddb8b9e0 display/ui: add a callback to indicate GL state is flushed
Displaying rendered resources requires blocking qemu GPU to avoid extra
framebuffer copies. For an external display, via Spice currently, there
is a callback to block/unblock the rendering in the same thread.

But with the vhost-user-gpu backend, the qemu process doesn't handle
the rendering itself, and the blocking callback isn't effective.
Instead, the backend must be notified when the display code is done.

Fix this by adding a new GraphicHwOps callback to indicate the GL state
is flushed, and we are done manipulating the shared GL resources. Call
it from gtk and spice display.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210204105232.834642-19-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2021-02-04 15:58:54 +01:00
..
console.h display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
egl-context.h ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
egl-helpers.h ui: add qemu_egl_has_dmabuf helper 2021-02-04 15:58:54 +01:00
gtk.h ui: add egl dmabuf import to gtkglarea 2021-02-04 15:58:54 +01:00
input.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
kbd-state.h Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
pixel_ops.h
qemu-pixman.h Remove the CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE switch 2020-07-13 11:40:52 +02:00
qemu-spice-module.h spice: wire up monitor in QemuSpiceOps. 2020-10-21 15:46:14 +02:00
qemu-spice.h spice: delay starting until display are initialized 2021-02-04 14:32:40 +01:00
sdl2.h ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
shader.h
spice-display.h Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
win32-kbd-hook.h ui/win32-kbd-hook: handle AltGr in a hook procedure 2020-05-19 09:06:44 +02:00