i965/blorp: Support blits between ARGB and XRGB formats.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Jan 2013 06:26:31 +0000 (22:26 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Feb 2013 18:01:03 +0000 (10:01 -0800)
commit7d467f3c1583c94daffb58610d12eece1fddd9c2
treeecd915e8650e0cad8284a7cb33957e56e67b1929
parentc0554141a9b831b4e614747104dcbbe0fe489b9d
i965/blorp: Support blits between ARGB and XRGB formats.

Now that we have support for overriding alpha to 1.0, we can handle
blitting between these formats in either direction.

For now, we only support two XRGB formats: MESA_FORMAT_XRGB8888 and
MESA_FORMAT_RGBX8888_REV.  Most places only appear to worry about the
former, so ignore the latter for now.  We can always add it later.

NOTE: This is a candidate for the 9.1 branch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Martin Steigerwald <martin@lichtvoll.de>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp