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

View file

@ -14,6 +14,12 @@ wlr_files += files(
'wlr_texture.c',
)
if cc.has_header('linux/dma-buf.h') and target_machine.system() == 'linux'
wlr_files += files('dmabuf_linux.c')
else
wlr_files += files('dmabuf_fallback.c')
endif
if 'gles2' in renderers or 'auto' in renderers
egl = dependency('egl', required: 'gles2' in renderers)
gbm = dependency('gbm', required: 'gles2' in renderers)