egl/android: Provide an option for the backend to expose KHR_image
authorHarish Krupo <harish.krupo.kps@intel.com>
Fri, 8 Dec 2017 15:59:39 +0000 (21:29 +0530)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 14 Dec 2017 11:43:03 +0000 (13:43 +0200)
commit96fc5fbf232b6bc7f3db0b5037df9f120704980f
treec4b65fec94e9acf01e91b6ab3b98e6013581a459
parent4eb0dca46bf481258443bb76fb542613c3a260d1
egl/android: Provide an option for the backend to expose KHR_image

From android cts 8.0_r4, a new test case checks if all the required egl
extensions are exposed. In the current implementation we expose KHR_image
if KHR_image_base and KHR_image_pixmap are supported but KHR_image spec
does not mandate the existence of both the extensions.
This patch preserves the current check and also provides the backend
with an option to expose the KHR_image extension.

Test: run cts -m CtsOpenGLTestCases -t \
android.opengl.cts.OpenGlEsVersionTest#testRequiredEglExtensions

Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_android.c
src/egl/main/eglapi.c
src/egl/main/egldisplay.h