mesa: Ignore SRGB when determining compatible resolve formats.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Sep 2012 18:29:30 +0000 (11:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Sep 2012 14:21:40 +0000 (07:21 -0700)
commit82a08e2f469d7f7a09006aaf28290ece26dd979d
tree528c81ba3b9ec8abdb2ed6772f1d0cc904c1330f
parent3dd84a58bb3a066eeaf854dd83a8d33801011367
mesa: Ignore SRGB when determining compatible resolve formats.

MSAA resolves and other blit-like operations ignore SRGB state anyway,
so we should be able to safely allow resolves between compatible
SRGB/linear formats like SRGBA8 and RGBA8888.

This matches the behavior of the nVidia and AMD binary drivers.

Fixes completely black rendering when using multisampling in L4D2.

NOTE: This is a candidate for the 9.0 branch.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit c96828ecb46b5aee3121a018be365b738c35cbdc)
src/mesa/main/fbobject.c