egl/dri: Add error info needed for EGL_EXT_image_dma_buf_import extension
authorFrank Binns <frank.binns@imgtec.com>
Fri, 31 Jul 2015 08:11:46 +0000 (09:11 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 5 Aug 2015 03:03:16 +0000 (20:03 -0700)
commitcfc3200a35647026a0b5cf188f378ce33802044b
tree9c3c8553f1e9f61d41f65ce0fbb0addbf1d30be3
parentee47d13abbc6770b4e6513c894ede56b1e846785
egl/dri: Add error info needed for EGL_EXT_image_dma_buf_import extension

Update the DRI image interface error codes to reflect the needs of the
EGL_EXT_image_dma_buf_import extension. This means updating the existing error
code documentation and adding a new __DRI_IMAGE_ERROR_BAD_ACCESS error code
so that drivers can correctly reject unsupported pitches and offsets. Hook
the new error code up in EGL to return EGL_BAD_ACCESS.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
include/GL/internal/dri_interface.h
src/egl/drivers/dri2/egl_dri2.c