qemu-devel
[Top][All Lists]
Advanced

[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: Gerd Hoffmann
Subject: Re: [PATCH v2 2/8] ui/egl: Add egl helpers to help with synchronization
Date: Tue, 15 Jun 2021 07:31:51 +0200

  Hi,

> +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
"qemu_set_fd_handler(dmabuf->fence_fd, ...)" to avoid the
eglClientWaitSyncKHR() completely?

take care,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]