i965/blorp: Add support for blits between SRGB and linear formats.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Sep 2012 23:20:43 +0000 (16:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Sep 2012 21:48:02 +0000 (14:48 -0700)
commite2249e8c4d06a85d6389ba1689e15d7e29aa4dff
tree86ee3de96395b7d73e8b52926d5874f669a820d5
parentc96828ecb46b5aee3121a018be365b738c35cbdc
i965/blorp: Add support for blits between SRGB and linear formats.

Fixes colorspace issues in L4D2 when multisampling is enabled (the
scene was far too dark, but the flashlight area was way too bright).

The nVidia and AMD binary drivers both allow this kind of blit.

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/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp