xserver/dri3
Erik Kurzinger 613dcb6a77 DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj
Adds the required infrastructure in the core DRI3 code to support
importing DRM synchronization objects from clients. This includes
support for the two new protocol requests from DRI3 version 1.4, an
internal representation of these objects in the form of the dri3_syncobj
structure, and an import_syncobj screen info callback.

The following operations are defined for dri3_syncobj objects
* free - release any server-side resources associated with the object
* has_fence - check if the fence for a timeline point is submitted
* is_signaled - check if a timeline point is signaled
* export_fence - return a sync fd corresponding to a timeline point
* import_fence - submit a sync fd as the fence for a timeline point
* signal - immediately signal a timeline point
* submitted_eventfd and signaled_eventfd - register an eventfd to be
  signaled when the given timeline point is either submitted or
  signaled

Implementations will be responsible for populating these function
pointers when importing a syncobj.

Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/967>
2024-04-09 06:11:03 +00:00
..
dri3.c DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj 2024-04-09 06:11:03 +00:00
dri3.h DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj 2024-04-09 06:11:03 +00:00
dri3_priv.h DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj 2024-04-09 06:11:03 +00:00
dri3_request.c DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj 2024-04-09 06:11:03 +00:00
dri3_screen.c DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj 2024-04-09 06:11:03 +00:00
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00