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