egl: enhance KHR_gl_image extensions checks
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 28 Jun 2017 23:35:56 +0000 (00:35 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Jul 2017 14:44:26 +0000 (15:44 +0100)
commit962110fa57a5876b523491b701ebe68aa6eb731b
tree476d951ce69a8f5ff0e0adf9ce105d8fd5f6915f
parenta2ae8e6076cfdb4b3100d5d7c444c2f8ed68f5f5
egl: enhance KHR_gl_image extensions checks

Drop the (duplicate) top-level check in dri2_create_image_khr() and add
the respective checks in dri2_create_image_khr_{texture,renderbuffer}

v2: use unreachable instead of assert in dri2_create_image_khr_texture

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