summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarc-André Lureau2021-02-04 11:52:29 +0100
committerGerd Hoffmann2021-02-04 15:58:54 +0100
commitf8f3c2719e11145d4f2902c562f7979df741daf0 (patch)
tree15239f7244b5f499a44e1abc5a5ef3f8f68e3ae6 /include
parentui: add egl dmabuf import to gtkglarea (diff)
downloadqemu-f8f3c2719e11145d4f2902c562f7979df741daf0.tar.gz
qemu-f8f3c2719e11145d4f2902c562f7979df741daf0.tar.xz
qemu-f8f3c2719e11145d4f2902c562f7979df741daf0.zip
virtio-gpu: avoid re-entering cmdq processing
The next patch will notify the GL context got flush, which will resume the queue processing. However, if this happens within the caller context, it will end up with a stack overflow flush/update loop. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210204105232.834642-18-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/virtio-gpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h
index 4f3dbf79f9..0043268e90 100644
--- a/include/hw/virtio/virtio-gpu.h
+++ b/include/hw/virtio/virtio-gpu.h
@@ -148,6 +148,7 @@ struct VirtIOGPU {
uint64_t hostmem;
+ bool processing_cmdq;
bool renderer_inited;
bool renderer_reset;
QEMUTimer *fence_poll;