[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 0/5] virtio-gpu: Add implicit (and default) sync mechanism for
From: |
Vivek Kasireddy |
Subject: |
[PATCH v1 0/5] virtio-gpu: Add implicit (and default) sync mechanism for blobs |
Date: |
Mon, 7 Jun 2021 16:25:25 -0700 |
When the Guest and Host are using Blob resources, there is a chance
that they may use the underlying storage associated with a Blob at
the same time leading to glitches such as flickering or tearing.
To prevent these from happening, the Host needs to ensure that it
waits until its Blit is completed by the Host GPU before returning
control back to the Guest from resource_flush().
This should be the default behavior regardless of the type of Guest
that is using Blob resources but would be particularly useful for
Guests that are using frontbuffer rendering such as Linux with X
or Windows 10, etc.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>
Cc: Tina Zhang <tina.zhang@intel.com>
Vivek Kasireddy (5):
ui/gtk: Create a common release_dmabuf helper
ui: Add a helper to wait on a dmabuf sync object
ui/egl: Add egl helpers to help with synchronization
ui: Create sync objects only for blobs
virtio-gpu: Make resource_flush wait on the sync object for blobs
hw/display/virtio-gpu-udmabuf.c | 30 ++++++++++++++++++++++
hw/display/virtio-gpu.c | 1 +
include/hw/virtio/virtio-gpu.h | 2 ++
include/ui/console.h | 8 ++++++
include/ui/egl-helpers.h | 4 +++
include/ui/gtk.h | 2 --
ui/console.c | 10 ++++++++
ui/egl-helpers.c | 44 +++++++++++++++++++++++++++++++++
ui/gtk-egl.c | 18 ++++++++------
ui/gtk-gl-area.c | 8 ++++++
ui/gtk.c | 26 ++++++++++++++++++-
11 files changed, 142 insertions(+), 11 deletions(-)
--
2.30.2
- [PATCH v1 0/5] virtio-gpu: Add implicit (and default) sync mechanism for blobs,
Vivek Kasireddy <=
- [PATCH v1 2/5] ui: Add a helper to wait on a dmabuf sync object, Vivek Kasireddy, 2021/06/07
- [PATCH v1 5/5] virtio-gpu: Make resource_flush wait on the sync object for blobs, Vivek Kasireddy, 2021/06/07
- [PATCH v1 3/5] ui/egl: Add egl helpers to help with synchronization, Vivek Kasireddy, 2021/06/07
- [PATCH v1 4/5] ui: Create sync objects only for blobs, Vivek Kasireddy, 2021/06/07
- [PATCH v1 1/5] ui/gtk: Create a common release_dmabuf helper, Vivek Kasireddy, 2021/06/07
- Re: [PATCH v1 0/5] virtio-gpu: Add implicit (and default) sync mechanism for blobs, no-reply, 2021/06/09