i965: Preserve the internal format of the dri image
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 22 Jun 2016 17:34:08 +0000 (17:34 +0000)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 24 Jun 2016 03:44:00 +0000 (20:44 -0700)
commitc36a363a2d305a987ef2ea843fe9fc860b576eed
tree792feb0645bbba639b5e2b6058fc435ee7e6d714
parenta0f3c3c9d4002ffc1dd987c816a1462e4a91a5f4
i965: Preserve the internal format of the dri image

Since the OpenGLES API is strict about the internal format matching
the for many operations, we need to preserve it.

See _mesa_es3_error_check_format_and_type in
src/mesa/main/glformats.c.

Fixes ES2-CTS.gtf.GL2ExtensionTests.egl_image.egl_image

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96351
Reported-by: Mark Janes <mark.a.janes@intel.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Kristian Høgsberg <krh@bitplanet.net>
Cc: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/intel_tex_image.c