mesa: support GL_RGB for GL_EXT_texture_type_2_10_10_10_REV
authorTapani Pälli <tapani.palli@intel.com>
Fri, 16 Jan 2015 10:48:43 +0000 (12:48 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 19 Jan 2015 06:11:45 +0000 (08:11 +0200)
commitd74a817b86f7131c2cb1ab8916d4d12f718b3977
tree07ebf1a7211e4b616fb46049877dee13356c2f09
parentd36fa60191359af9ac1e1889bcdc95c3b9d65332
mesa: support GL_RGB for GL_EXT_texture_type_2_10_10_10_REV

Commit 8ec6534 changed texture upload path and the way how texture
format is being checked, this commit adds support for GL_RGB with
GL_UNSIGNED_INT_2_10_10_10_REV as specified by the extension
EXT_texture_type_2_10_10_10_REV specification.

This fixes regression in ES3 conformance test
   ES3-CTS.gtf.GL3Tests.packed_pixels.packed_pixels

v2: add MESA_FORMAT_R10G10B10X2_UNORM format (Iago Toral)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88385
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/main/formats.c
src/mesa/main/formats.csv
src/mesa/main/formats.h
src/mesa/main/glformats.c
src/mesa/swrast/s_texfetch.c