mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
vhost-user-gpu: glFlush before notifying clients
For similar reasons as commit 3af1671852
("spice: flush on GL update
before notifying client"), vhost-user-gpu must ensure the GL state is
flushed before sharing its rendering result.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210312100108.2706195-3-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
d2aea775d4
commit
0c27b9c568
2 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,8 @@
|
|||
#include <virglrenderer.h>
|
||||
#include "virgl.h"
|
||||
|
||||
#include <epoxy/gl.h>
|
||||
|
||||
void
|
||||
vg_virgl_update_cursor_data(VuGpu *g, uint32_t resource_id,
|
||||
gpointer data)
|
||||
|
@ -372,6 +374,7 @@ virgl_cmd_resource_flush(VuGpu *g,
|
|||
|
||||
VUGPU_FILL_CMD(rf);
|
||||
|
||||
glFlush();
|
||||
if (!rf.resource_id) {
|
||||
g_debug("bad resource id for flush..?");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue