egl/dri2: support for creating images out of dma buffers
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 22 Mar 2013 13:58:05 +0000 (15:58 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 2 Aug 2013 05:56:03 +0000 (08:56 +0300)
commit20de7f9f226401f91fc893c28d77090afeb0e7a4
tree9f80b054263ebf9d80c04639e37018665e7d656a
parent3a52cd351af6ad834fa6205ec03a82559d1cea92
egl/dri2: support for creating images out of dma buffers

v2:
   - upon success close the given file descriptors

v3:
   - use specific entry for dma buffers instead of the basic for
     primes, and enable the extension based on the availability
     of the hook

v4 (Chad):
   - use ARRAY_SIZE
   - improve the comment about the number of file descriptors
   - in case of invalid format report EGL_BAD_ATTRIBUTE instead
     of EGL_BAD_MATCH
   - take into account specific error set by the driver.

v5:
   - fix error handling

v6 (Chad):
   - fix invalid plane count checking

v7 (Chad):
   - fix indentation and reset loop counter before checking
     for excess attributes

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/egl/drivers/dri2/egl_dri2.c