virgl: count the calls to gl_block
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 14 Jun 2016 13:44:07 +0000 (15:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 6 Jul 2016 08:32:14 +0000 (10:32 +0200)
commitc540128f93e17141c63d41a8eb77bde80a2fc752
tree852cc607a6c66a4889b9bdfae3b907c49331b1b1
parent015e02f88071cfedd6bc6f910af5a388462aec6b
virgl: count the calls to gl_block

In virgl_cmd_resource_flush(), when several consoles are updated, it
needs to keep blocking until all spice gl draws are done. This fixes an
assert() in spice when using multiple monitors with virgl.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1465911849-30423-2-git-send-email-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h