summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
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 /src/modules/evas/engines/software_generic/evas_native_dmabuf.c
parentfb082484b0dd66568ffc522997371d4b7fa0431d (diff)
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
Diffstat (limited to 'src/modules/evas/engines/software_generic/evas_native_dmabuf.c')
-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
35 return; 35 return;
36 } 36 }
37 size = a->height * a->stride[0]; 37 size = a->height * a->stride[0];
38 im->image.data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, a->fd[0], 0); 38 im->image.data = mmap(NULL, size, PROT_READ, MAP_SHARED, a->fd[0], 0);
39 if (im->image.data == MAP_FAILED) im->image.data = NULL; 39 if (im->image.data == MAP_FAILED) im->image.data = NULL;
40 n->ns_data.wl_surface_dmabuf.size = size; 40 n->ns_data.wl_surface_dmabuf.size = size;
41 n->ns_data.wl_surface_dmabuf.ptr = im->image.data; 41 n->ns_data.wl_surface_dmabuf.ptr = im->image.data;