Remove some duplicate dmabuf validity checks

These have been moved into EFL where they belong.
This commit is contained in:
Derek Foreman 2017-06-30 14:50:52 -05:00
parent cb83120863
commit 034211051b
1 changed files with 0 additions and 5 deletions

View File

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