dmabuf: Drop requirement that buffer be writeable

We don't need to write to it, and some clients don't create their buffers
in a way that we can.

@fix
This commit is contained in:
Derek Foreman 2017-05-19 16:58:32 -05:00
parent fb082484b0
commit a5fae67e9c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ _native_bind_cb(void *image, int x EINA_UNUSED, int y EINA_UNUSED, int w EINA_UN
return;
}
size = a->height * a->stride[0];
im->image.data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, a->fd[0], 0);
im->image.data = mmap(NULL, size, PROT_READ, MAP_SHARED, a->fd[0], 0);
if (im->image.data == MAP_FAILED) im->image.data = NULL;
n->ns_data.wl_surface_dmabuf.size = size;
n->ns_data.wl_surface_dmabuf.ptr = im->image.data;