meta: save and restore swizzle for _GenerateMipmap
authorRobert Bragg <robert@sixbynine.org>
Sun, 8 Jun 2014 18:02:41 +0000 (19:02 +0100)
committerRobert Bragg <robert@sixbynine.org>
Wed, 11 Jun 2014 20:38:01 +0000 (21:38 +0100)
commitc6f118484c3d45e4ba18c36e5cc0517eb33b39fc
tree051f57a2705a597b93af34e5112472ea96c78646
parent63117ac32948310c87e30f67b475a07f98884633
meta: save and restore swizzle for _GenerateMipmap

This makes sure to use a no-op swizzle while iteratively rendering each
level of a mipmap otherwise we may loose components and effectively
apply the swizzle twice by the time these levels are sampled.

Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta_generate_mipmap.c