i965: Fix BLORP sRGB MSAA overrides to cope with X vs. A formats.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Jan 2015 05:51:05 +0000 (21:51 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 5 Jan 2015 05:31:40 +0000 (21:31 -0800)
commit51b9382da82ac03d59a718b6611c2860a35d58f9
treee204e01a83c13a4503afe7eea5d95171559579db
parent1f1102c8349bd06d579e542ded32fb1aea8a27ab
i965: Fix BLORP sRGB MSAA overrides to cope with X vs. A formats.

The logic in brw_blorp_surface_info::set uses brw_format_for_mesa_format
for source surfaces, and brw->render_target_format[] for destination
surfaces.  We should do the same in the sRGB MSAA overrides.

Currently, this isn't a problem, since SRGB MSAA buffers are all RGBA.
The next commit will introduce RGBX SRGB MSAA buffers, at which point
we need to get the RGBX -> RGBA format overrides for rendering right.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp