From f76fb2d558f145b3d348d8b0e2242787bf5eee51 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 19 May 2017 16:47:57 -0500 Subject: [PATCH] Don't require dmabuf buffers to be writeable Compositor doesn't need to write to this buffer, and most clients won't allocate them in a way that the compositor can. Relax the test criteria. --- src/bin/e_pixmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 2849e598d..ad368e4b1 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -1084,7 +1084,7 @@ e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *dmabuf) /* This is only legit for ARGB8888 */ size = dmabuf->attributes.height * dmabuf->attributes.stride[0]; - data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf->attributes.fd[0], 0); + data = mmap(NULL, size, PROT_READ, MAP_SHARED, dmabuf->attributes.fd[0], 0); if (data == MAP_FAILED) return EINA_FALSE; munmap(data, size);