summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Celaya <javier.celaya@flexvdi.com>2015-06-19 14:05:10 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-06-22 19:16:46 +0200
commite765cc5ea35bfab017201307b280368400cf1d10 (patch)
tree35375b3bf78c4e7fbe541e0c6d09884bd9186fe9
parentd99213d4a6fe407d4392dcb78c01f58c03b97086 (diff)
Fix drawable mm_time with KMS
When KMS is enabled, the mm_time value of a QXLDrawable is undefined. This results in severe synchronization problems. This patch sets it to zero to force the spice-server to use the local clock.
-rw-r--r--src/qxl_surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index c5e76e0..6fc2146 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -86,6 +86,8 @@ make_drawable (qxl_screen_t *qxl, qxl_surface_t *surf, uint8_t type,
if (!qxl->kms_enabled)
drawable->mm_time = qxl->rom->mm_clock;
+ else
+ drawable->mm_time = 0;
qxl->bo_funcs->bo_unmap(draw_bo);
return draw_bo;