projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1b9b8
)
qxl: handle no updates in interface_update_area_complete
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 8 Jun 2016 14:11:41 +0000
(16:11 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 6 Jul 2016 08:31:02 +0000
(10:31 +0200)
Simply return early in case there are no updated rects.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id:
1465395101
-13580-1-git-send-email-kraxel@redhat.com
hw/display/qxl.c
patch
|
blob
|
history
diff --git
a/hw/display/qxl.c
b/hw/display/qxl.c
index ab96f24a025db4568dc9e30c30e4295cc186a150..47cc6f478ae9d872e0c4adfb8d6fee37f7b9e74d 100644
(file)
--- a/
hw/display/qxl.c
+++ b/
hw/display/qxl.c
@@
-893,7
+893,8
@@
static void interface_update_area_complete(QXLInstance *sin,
int qxl_i;
qemu_mutex_lock(&qxl->ssd.lock);
- if (surface_id != 0 || !qxl->render_update_cookie_num) {
+ if (surface_id != 0 || !num_updated_rects ||
+ !qxl->render_update_cookie_num) {
qemu_mutex_unlock(&qxl->ssd.lock);
return;
}