mesa: Change the signature of _mesa_need_rgb_to_luminance_conversion()
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 12 Jun 2015 21:42:57 +0000 (14:42 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 24 Jul 2015 17:48:58 +0000 (10:48 -0700)
commit4b8745680ff45cd7adc7896c06263e14b8d347ce
tree51f428050e5c6f2e64bcc4260082a30369c34272
parentaa40546b2de4cd572af02d31fd5c7d4045505ea2
mesa: Change the signature of _mesa_need_rgb_to_luminance_conversion()

This allows us to handle cases when texImage->_BaseFormat doesn't match
_mesa_format_get_base_format(texImage->Format). _BaseFormat is what we
care about in this function.

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