[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v2 2/8] ui/egl: Add egl helpers to help with synchronization
From: |
Kasireddy, Vivek |
Subject: |
RE: [PATCH v2 2/8] ui/egl: Add egl helpers to help with synchronization |
Date: |
Tue, 15 Jun 2021 23:11:08 +0000 |
Hi Gerd,
> > +void egl_dmabuf_create_fence(QemuDmaBuf *dmabuf)
> > +{
> > + if (dmabuf->sync) {
> > + dmabuf->fence_fd = eglDupNativeFenceFDANDROID(qemu_egl_display,
> > + dmabuf->sync);
> > + eglDestroySyncKHR(qemu_egl_display, dmabuf->sync);
> > + dmabuf->sync = NULL;
> > + }
> > +}
>
> > +void egl_dmabuf_wait_sync(QemuDmaBuf *dmabuf)
> > +{
>
> Hmm, still the blocking wait. Can't you do something like
[Kasireddy, Vivek] Right, it is a blocking wait; but this gets called from a
new GTK thread
that does the actual drawing.
> "qemu_set_fd_handler(dmabuf->fence_fd, ...)" to avoid the
> eglClientWaitSyncKHR() completely?
[Kasireddy, Vivek] Yeah, I think this is also doable; let me look into it.
Thanks,
Vivek
>
> take care,
> Gerd
- [PATCH v2 0/8] virtio-gpu: Add a default synchronization mechanism for blobs, Vivek Kasireddy, 2021/06/10
- [PATCH v2 1/8] ui/gtk: Create a common release_dmabuf helper, Vivek Kasireddy, 2021/06/10
- [PATCH v2 3/8] ui: Add a helper to wait on a dmabuf sync object, Vivek Kasireddy, 2021/06/10
- [PATCH v2 2/8] ui/egl: Add egl helpers to help with synchronization, Vivek Kasireddy, 2021/06/10
- [PATCH v2 4/8] ui/gtk: Implement wait_dmabuf function, Vivek Kasireddy, 2021/06/10
- [PATCH v2 6/8] ui/gtk-egl: Wait for the draw signal for dmabuf blobs, Vivek Kasireddy, 2021/06/10
- [PATCH v2 5/8] ui: Create sync objects only for blobs, Vivek Kasireddy, 2021/06/10
- [PATCH v2 7/8] virtio-gpu: Add dmabuf helpers for synchronization, Vivek Kasireddy, 2021/06/10
- [PATCH v2 8/8] virtio-gpu: Add gl_flushed callback, Vivek Kasireddy, 2021/06/10
- Re: [PATCH v2 0/8] virtio-gpu: Add a default synchronization mechanism for blobs, no-reply, 2021/06/14