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

@ -3,6 +3,7 @@
#include <unistd.h>
#include <wlr/render/dmabuf.h>
#include <wlr/util/log.h>
#include "render/dmabuf.h"
void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs) {
for (int i = 0; i < attribs->n_planes; ++i) {