render/dmabuf: add dmabuf_import_sync_file

References: https://lore.kernel.org/dri-devel/20220506180216.2095060-1-jason@jlekstrand.net/
This commit is contained in:
Simon Ser 2022-05-26 14:44:02 +02:00
parent 10f543d579
commit aaf828d3d2
5 changed files with 120 additions and 0 deletions

12
render/dmabuf_fallback.c Normal file
View file

@ -0,0 +1,12 @@
#include <wlr/util/log.h>
#include "render/dmabuf.h"
bool dmabuf_check_sync_file_import_export(void) {
return false;
}
bool dmabuf_import_sync_file(int dmabuf_fd, uint32_t flags, int sync_file_fd) {
wlr_log(WLR_ERROR, "DMA-BUF sync_file import IOCTL not available on this system");
return false;
}