OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 24 Jun 2016 20:29:47 +0000 (21:29 +0100)
commiteadccf8c67ce7b0a52d3f4c795893e00afea6f27
tree1493ff7d993f4e0fc01ebf9a23360909c623a6b8
parent1fc705366c8c8d75ad8d81cf5bd1b02a093bcf38
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>
(cherry picked from commit c36a363a2d305a987ef2ea843fe9fc860b576eed)
src/mesa/drivers/dri/i965/intel_tex_image.c