render/dmabuf: add dmabuf_export_sync_file()

This commit is contained in:
Simon Ser 2022-12-01 11:29:30 +01:00 committed by Simon Zeni
parent 825f1b2dc6
commit 30219cf76b
3 changed files with 38 additions and 0 deletions

View file

@ -23,4 +23,13 @@ bool dmabuf_check_sync_file_import_export(void);
*/
bool dmabuf_import_sync_file(int dmabuf_fd, uint32_t flags, int sync_file_fd);
/**
* Export a sync_file from a DMA-BUF with DMA_BUF_IOCTL_EXPORT_SYNC_FILE.
*
* The sync_file FD is returned on success, -1 is returned on error.
*
* This can be used to make explicit sync interoperate with implicit sync.
*/
int dmabuf_export_sync_file(int dmabuf_fd, uint32_t flags);
#endif