mesa: Add GL_BGRA_EXT to the list of GenerateMipmap internal formats.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Jul 2016 23:48:05 +0000 (16:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Jul 2016 04:31:57 +0000 (21:31 -0700)
commitcb7077312954299fb1febed5b016190c00cccfa0
tree5c8b231b3f09b30213e1256ec7cf632654817431
parentbe1c53d2cf2b12655ff69caac49cca75a55e63e0
mesa: Add GL_BGRA_EXT to the list of GenerateMipmap internal formats.

The GL_EXT_texture_format_BGRA8888 extension specification defines a
GL_BGRA_EXT unsized internal format (which is a little odd - usually
BGRA is a pixel transfer format).  The extension is written against
the ES 1.0 specification, so it's a little hard to map, but I believe
it's effectively adding it to the table used here, so we should allow
it here as well.

Note that GL_EXT_texture_format_BGRA8888 is always enabled (dummy_true),
so we don't need to check if it's enabled here.

This fixes mipmap generation in Skia and ChromeOS.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
References: https://bugs.chromium.org/p/chromium/issues/detail?id=630371
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reported-by: Stéphane Marchesin <marcheu@chromium.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/main/genmipmap.c