forked from enlightenment/enlightenment
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:
parent
3593fe3856
commit
f76fb2d558
|
@ -1084,7 +1084,7 @@ e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *dmabuf)
|
||||||
|
|
||||||
/* This is only legit for ARGB8888 */
|
/* This is only legit for ARGB8888 */
|
||||||
size = dmabuf->attributes.height * dmabuf->attributes.stride[0];
|
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;
|
if (data == MAP_FAILED) return EINA_FALSE;
|
||||||
munmap(data, size);
|
munmap(data, size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue