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
18af62b229
commit
4fca111eb5
|
@ -1081,7 +1081,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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue