i965: Reject unsupported formats in glEGLImageTargetTexture2D()
authorChad Versace <chadversary@chromium.org>
Tue, 30 May 2017 16:53:28 +0000 (09:53 -0700)
committerChad Versace <chadversary@chromium.org>
Thu, 1 Jun 2017 19:03:33 +0000 (12:03 -0700)
commit7a4964ec5c1a0dd065436ff7d25aecb45d306979
tree3f7e9a2dd0b11f3e12ed34e892167f1c91968bd7
parentfe9699dcb491d07f5b629828fd0d3dad5a213318
i965: Reject unsupported formats in glEGLImageTargetTexture2D()

If the EGLImage's format is not a supported texture format according to
brw_surface_formats.c, then refuse to create the miptree. This follows
the precedent in glEGLImageRenderbufferStorage (implemented by
intel_image_target_renderbuffer_storage), which rejects the EGLImage's
format if is not renderable.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_tex_image.c