[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/9] qxl: handle no updates in interface_update_area_
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/9] qxl: handle no updates in interface_update_area_complete |
Date: |
Wed, 6 Jul 2016 12:04:35 +0200 |
Simply return early in case there are no updated rects.
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden
---
hw/display/qxl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index ab96f24..47cc6f4 100644
--- 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;
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/9] spice and qxl bugfixes, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 1/9] qxl: use uint64_t for vram size, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 6/9] spice: avoid .set_mm_time on >= 0.12.6, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 7/9] virgl: count the calls to gl_block, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 4/9] qxl: store memory region and offset instead of pointer for guest slots, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 3/9] qxl: factor out qxl_get_check_slot_offset, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 2/9] qxl: handle no updates in interface_update_area_complete,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 8/9] spice: use the right head for multi-monitor, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 9/9] virgl: pass whole GL scanout dimensions, Gerd Hoffmann, 2016/07/06
- [Qemu-devel] [PULL 5/9] qxl: fix surface migration, Gerd Hoffmann, 2016/07/06
- Re: [Qemu-devel] [PULL 0/9] spice and qxl bugfixes, Peter Maydell, 2016/07/06