[Spice-devel] [PATCH xf86-video-qxl] Fix drawable mm_time with KMS
Javier Celaya
javier.celaya at flexvdi.com
Fri Jun 19 04:51:41 PDT 2015
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.
---
src/qxl_surface.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index c5e76e0..95d34db 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -86,6 +86,7 @@ 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;
--
1.9.3
More information about the Spice-devel
mailing list