diff options
author | Dongwon Kim | 2021-09-25 00:51:05 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2021-11-02 17:24:18 +0100 |
commit | 55f4b767f64ee0fec397c7ceebfea1473b725963 (patch) | |
tree | 4a4d2e3872035b1a18048c9f9a4e2cb4ebd9e3b5 /include/ui | |
parent | ui/gtk: Update the refresh rate for gl-area too (diff) | |
download | qemu-55f4b767f64ee0fec397c7ceebfea1473b725963.tar.gz qemu-55f4b767f64ee0fec397c7ceebfea1473b725963.tar.xz qemu-55f4b767f64ee0fec397c7ceebfea1473b725963.zip |
ui/gtk: skip any extra draw of same guest scanout blob res
Any extra draw call for the same blob resource representing guest scanout
before the previous drawing is not finished can break synchronous draw
sequence. To prevent this, drawing is now done only once for each draw
submission (when draw_submitted == true).
v2:
- removed mutex
- updated commit msg
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Message-Id: <20210924225105.24930-1-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index 244664d727..b6bedc5f41 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -171,6 +171,7 @@ typedef struct QemuDmaBuf { void *sync; int fence_fd; bool allow_fences; + bool draw_submitted; } QemuDmaBuf; typedef struct DisplayState DisplayState; |