summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-05-19 16:58:32 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-19 16:59:27 -0500
commita5fae67e9c5550037a707bba92766ec8bd0457a7 (patch)
tree4ba97648ba2e92904b00b3fc13ad383d1497324f
parentfb082484b0dd66568ffc522997371d4b7fa0431d (diff)
downloadefl-a5fae67e9c5550037a707bba92766ec8bd0457a7.tar.gz
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
-rw-r--r--src/modules/evas/engines/software_generic/evas_native_dmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_native_dmabuf.c b/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
index d85e352451..f01a6c4751 100644
--- a/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
+++ b/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
@@ -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;