Message ID | 152947832268.7374.8550233006013647387.malonedeb@wampee.canonical.com |
---|---|
State | New |
Headers | show |
Series | [Bug,1777786,NEW] virtio-gpu-3d.c: change virtio_gpu_fence_poll timer scale | expand |
Please don't use the bug tracker for providing patches, and send it to the mailing list instead, see: https://wiki.qemu.org/Contribute/SubmitAPatch
Did you ever send your patch to the mailing list for discussion? ** Changed in: qemu Status: New => Incomplete
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired
diff --git a/hw/display/virtio-gpu-3d.c b/hw/display/virtio-gpu-3d.c index 3558f38..c0a5d21 100644 --- a/hw/display/virtio-gpu-3d.c +++ b/hw/display/virtio-gpu-3d.c @@ -582,7 +582,7 @@ static void virtio_gpu_fence_poll(void *opaque) virgl_renderer_poll(); virtio_gpu_process_cmdq(g); if (!QTAILQ_EMPTY(&g->cmdq) || !QTAILQ_EMPTY(&g->fenceq)) { - timer_mod(g->fence_poll, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + 10); + timer_mod(g->fence_poll, qemu_clock_get_us(QEMU_CLOCK_VIRTUAL) + 20); } } @@ -629,7 +629,7 @@ int virtio_gpu_virgl_init(VirtIOGPU *g) return ret; } - g->fence_poll = timer_new_ms(QEMU_CLOCK_VIRTUAL, + g->fence_poll = timer_new_us(QEMU_CLOCK_VIRTUAL, virtio_gpu_fence_poll, g); if (virtio_gpu_stats_enabled(g->conf)) {