]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
spice: flush on GL update before notifying client
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 16 Feb 2021 09:20:55 +0000 (13:20 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 19 Feb 2021 14:00:12 +0000 (15:00 +0100)
Since the introduction of spice/virgl support in commit
474114b7 ("spice: add opengl/virgl/dmabuf support"), the drawing isn't
being flushed before notifying the client. This results in
outdated/sluggish drawing on client side, in particular when using the
Linux console.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210216092056.2301293-1-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-display.c

index 6f32b66a6e75dfb8beb8dfb673149b515f814bc8..d562c6408405d2aa10520437f570436009b0bf6b 100644 (file)
@@ -1087,6 +1087,7 @@ static void qemu_spice_gl_update(DisplayChangeListener *dcl,
 
     trace_qemu_spice_gl_update(ssd->qxl.id, w, h, x, y);
     qemu_spice_gl_block(ssd, true);
+    glFlush();
     cookie = (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_GL_DRAW_DONE, 0);
     spice_qxl_gl_draw_async(&ssd->qxl, x, y, w, h, cookie);
 }