main: allow external textures for BindImageTexture
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Thu, 2 Jan 2020 13:06:48 +0000 (15:06 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 8 Jan 2020 07:21:39 +0000 (09:21 +0200)
commited43dd62acc045e71d73dc28b74b6a9a9d52286f
treebca11655dd5efefd2fc991da96d5c9b40b326e17
parent803fad43c3f9a89f0d8409bd33280b5457b104c7
main: allow external textures for BindImageTexture

From issue 10 of the OES_EGL_image_external_essl3:

  A limited set of use-cases is enabled by making glBindImageTexture
  accept external textures. Shaders can access such external textures
  using the existing <image2D> sampler type.

Fixes: 02a6d901eee ("mesa: add OES_EGL_image_external_essl3 support")
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/shaderimage.c