qemu-e2k/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
..
icons
keycodemapdb@6119e6e19a ui: update keycodemapdb submodule commit 2021-01-29 17:07:53 +00:00
shader
cocoa.m ui/cocoa: Fix openFile: deprecation on Big Sur 2021-01-12 21:19:02 +00:00
console-gl.c
console.c display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
curses_keys.h
curses.c
cursor_hidden.xpm
cursor_left_ptr.xpm
cursor.c
egl-context.c ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
egl-headless.c ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
egl-helpers.c ui: add qemu_egl_has_dmabuf helper 2021-02-04 15:58:54 +01:00
gtk-egl.c display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
gtk-gl-area.c display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
gtk.c ui: add egl dmabuf import to gtkglarea 2021-02-04 15:58:54 +01:00
input-barrier.c
input-barrier.h
input-keymap.c
input-legacy.c
input-linux.c
input.c
kbd-state.c
keymaps.c
keymaps.h
meson.build ui: update keycodemapdb submodule commit 2021-01-29 17:07:53 +00:00
qemu-pixman.c
qemu-x509.h
qemu.desktop
sdl2-2d.c
sdl2-gl.c display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
sdl2-input.c
sdl2.c ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
shader.c
spice-app.c
spice-core.c spice: delay starting until display are initialized 2021-02-04 14:32:40 +01:00
spice-display.c display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
spice-input.c
spice-module.c
trace-events
trace.h
vgafont.h
vnc_keysym.h
vnc-auth-sasl.c
vnc-auth-sasl.h
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle.c
vnc-enc-zrle.c.inc
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-stubs.c vnc: support "-vnc help" 2021-01-23 15:55:07 -05:00
vnc-ws.c
vnc-ws.h
vnc.c vnc: send extended desktop resize on update requests 2021-01-27 09:47:07 +01:00
vnc.h vnc: add support for extended desktop resize 2021-01-15 11:22:43 +01:00
win32-kbd-hook.c
x_keymap.c
x_keymap.h