mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
virtio-gpu: add support to enable/disable command processing
So we can stop rendering for a while in case we have to. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
3eb769fd1c
commit
0c55a1cfd3
3 changed files with 8 additions and 2 deletions
|
@ -554,7 +554,8 @@ static void virtio_gpu_fence_poll(void *opaque)
|
|||
VirtIOGPU *g = opaque;
|
||||
|
||||
virgl_renderer_poll();
|
||||
if (g->inflight) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue