diff --git a/src/buffer.c b/src/buffer.c index 6039707..dc835f7 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -224,6 +225,11 @@ static struct wv_buffer* wv_buffer_create_dmabuf(int width, int height, self->height = height; self->format = fourcc; + int device_fd = gbm_device_get_fd(gbm); + struct stat st = {}; + fstat(device_fd, &st); + self->node = st.st_rdev; + #ifdef HAVE_LINUX_DMA_HEAP self->bo = have_linux_cma() ? create_cma_gbm_bo(width, height, fourcc, gbm) :