meta: Use _mesa_unpack_format_to_base_format() to handle integer formats
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 12 Jun 2015 19:11:01 +0000 (12:11 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 24 Jul 2015 17:48:58 +0000 (10:48 -0700)
commit9fff00d387cacf7820c344324820cab764541762
treed6eeb56e8297653c7a9f9468e1cf8575ec280278
parent0127580647ee23d543228f0b7f42bd688e76f2bd
meta: Use _mesa_unpack_format_to_base_format() to handle integer formats

Replace a call to mesa_base_tex_format() that handles only internal
formats with a call to the new _mesa_unpack_format_to_base_format()
function that handles allowed unpack formats and does not care for
internal formats at all.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/common/meta.c