egl: add width/height as EXT_image_dma_buf_import attrs
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 28 Jun 2017 23:19:16 +0000 (00:19 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Jul 2017 14:43:09 +0000 (15:43 +0100)
commitcd859452e900e588ad8f7c067d2378fad7fc9c93
treea1856549617308dd82ab2619b52f8bef2d1a15de
parentd13dcca2c2ba8fdebf81b5db79dbedbc1835c701
egl: add width/height as EXT_image_dma_buf_import attrs

Although not listed amongst the initial EGL_LINUX_DRM_FOURCC_EXT and
friends list, the spec reads

   ... Required attributes and their values are as
   follows:

    * EGL_WIDTH & EGL_HEIGHT: The logical dimensions of the buffer in pixels

    * EGL_LINUX_DRM_FOURCC_EXT: The pixel format of the buffer, as specified
      by drm_fourcc.h and used as the pixel_format parameter of the
      drm_mode_fb_cmd2 ioctl.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglimage.c