qxl: set mm_time in vga update
RFC 1/1 qxl: set mm_time in vga update
This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk.
--- ui/spice-display.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
ui/spice-display.c +5 -0
@@ -70,6 +70,7 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd)QXLCommand *cmd;uint8_t *src, *dst;int by, bw, bh; +struct timespec time_space;if (qemu_spice_rect_is_empty (&ssd->dirty)) {return NULL ;
@@ -96,6 +97,10 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd) drawable->surfaces_dest[0 ] =-1 ; drawable->surfaces_dest[1 ] =-1 ; drawable->surfaces_dest[2 ] =-1 ; +clock_gettime (CLOCK_MONOTONIC , &time_space); +/* time in milliseconds from epoch. */ + drawable->mm_time = time_space.tv_sec *1000 + + time_space.tv_nsec /1000 /1000 ; drawable->u.copy.rop_descriptor =SPICE_ROPD_OP_PUT ; drawable->u.copy.src_bitmap = (intptr_t )image;
Signature · 1 line
1.7.5.2
Quoted 3 lines · Alon Levy
This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk.
Looks good to me. Why this is tagged RFC?
cheers,
Gerd
Quoted 6 lines · Gerd Hoffmann
Quoted 3 lines · Alon Levy
This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk.
Looks good to me. Why this is tagged RFC?
I wasn't sure if the right thing is to set the mm_time or just not warn if it is missing. This can be committed as is if you think it's good.
Quoted 4 lines
cheers,
Gerd