teximage: split out helper from EGLImageTargetTexture2DOES
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 14 Aug 2019 01:16:41 +0000 (18:16 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Mon, 13 Jan 2020 22:57:07 +0000 (14:57 -0800)
commit1fe23d0e22afee2cccafaec4d06399bdcca0f7d6
treec036f22c3c36cebcaaba24a488b132d33c9b08f7
parent7978f2401bba7e60f255337a394fd132082be9aa
teximage: split out helper from EGLImageTargetTexture2DOES

The major differences between EXT_EGL_image_storage and
EGLImageTargetTexture2DOES are:

(1) The texture target is made immutable
(2) EXT_EGL_image_storage supports non-2D targets.

We can reuse EGLImageTargetTexture2D and FreeTextureImageBuffer
for (1) pretty easily.  For (2), let's just not support the
complicated targets.  Let's reuse aspects of the
EGLImageTargetTexture2DOES implementation.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/teximage.c