derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=034211051b94681c979b679b0be4347beeb90ee0

commit 034211051b94681c979b679b0be4347beeb90ee0
Author: Derek Foreman <[email protected]>
Date:   Fri Jun 30 14:50:52 2017 -0500

    Remove some duplicate dmabuf validity checks
    
    These have been moved into EFL where they belong.
---
 src/bin/e_pixmap.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index c46e9929e..dcb4b0c08 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -1125,11 +1125,6 @@ e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *dmabuf)
    if (e_comp->gl || !ret)
       return ret;
 
-   /* TODO: Software rendering for multi-plane formats */
-   if (dmabuf->attributes.n_planes != 1) return EINA_FALSE;
-   if (dmabuf->attributes.format != DRM_FORMAT_ARGB8888 &&
-       dmabuf->attributes.format != DRM_FORMAT_XRGB8888) return EINA_FALSE;
-
    /* This is only legit for ARGB8888 */
    size = dmabuf->attributes.height * dmabuf->attributes.stride[0];
    data = mmap(NULL, size, PROT_READ, MAP_SHARED, dmabuf->attributes.fd[0], 0);

-- 


Reply via email to