mesa: Set green, blue channels to zero only for formats with these components
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 11 Jun 2015 23:44:45 +0000 (16:44 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 24 Jul 2015 17:48:58 +0000 (10:48 -0700)
commitbbbefec7323d0a338346233ab4ab715bcf4e1b78
treef72cafbbea43a6c48b68d46951e5c93475ba7cf8
parentca4e17e03e9aeaa04fe6bb04bfe2d6f97991005b
mesa: Set green, blue channels to zero only for formats with these components

This is an optimization which avoids setting pixel transfer operations
when not required. _mesa_ReadPixels falls back to slower path if
transfer operations are set.

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