meta: Fix datatype computation in get_temp_image_type()
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 12 Jun 2014 21:49:50 +0000 (14:49 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 5 Aug 2014 00:19:42 +0000 (17:19 -0700)
commit338fef61f86bb121e47b096428dce2a9109d3a3e
treee258ce153496a6df6960b2e2dc31ca9ee6d2de32
parent4bab55c874141b6a156a2e145443c6e07971ab39
meta: Fix datatype computation in get_temp_image_type()

Changes in the patch will cause datatype to be computed
correctly for 8 and 16 bit integer formats. For example:
GL_RG8I, GL_RG16I etc.

Fixes many failures in gles3 Khronos CTS test:
copy_tex_image_conversions_required
copy_tex_image_conversions_forbidden

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/common/meta.c