[PATCH] libdrm: add drm syncobj create/destroy/import/export

Dave Airlie airlied at gmail.com
Sat Sep 9 02:14:39 UTC 2017


On 9 Sep. 2017 10:17 am, "Marek Olšák" <maraeo at gmail.com> wrote:

On Fri, Sep 8, 2017 at 10:08 PM, Dave Airlie <airlied at gmail.com> wrote:
>
>
> On 9 Sep. 2017 2:30 am, "Marek Olšák" <maraeo at gmail.com> wrote:
>
> What's the difference between HandleToFD and ExportSyncFile?
>
>
> One just gives you an FD for sharing the syncobj itself, the other exports
> the syncobj state into a sync file and you get to do sync file stuff with
> it.
>
> A) is for process sharing
> B) for interop with sync files

i'm still confused, but If I understand it correctly, we have 4 kinds
fences now:
- amdgpu per-ring sequence numbers
- syncobj
- HandleToFD for sharing a syncobj (this is not an Android fence)
- ExportSyncFile, which is an Android fence


Yes, syncobj is pretty much Vulkan fence and semaphores semantics, sync
file are android fence semantics.

Syncobj FD is just for sharing and getting back the same under lying object
whereas sync file has a lot of other semantics that are undesirable when
you just want to share between APIs and processes.

Dave.


Is that right?

Thanks,
Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170909/76cbf5d8/attachment-0001.html>


More information about the dri-devel mailing list