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>
Thu, 20 Sep 2012 21:47:23 +0000 (14:47 -0700)
commitc96828ecb46b5aee3121a018be365b738c35cbdc
treede5acfd7f833b8e50246dd50f69c168eb32ae4f8
parent8504f18c3dafb62d10c4f1572145ce3b8a6f3f5c
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>
src/mesa/main/fbobject.c