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.
This commit is contained in:
Derek Foreman 2017-05-19 16:47:57 -05:00 committed by Mike Blumenkrantz
parent 3593fe3856
commit f76fb2d558
1 changed files with 1 additions and 1 deletions

View File

@ -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);