i965: Don't check for format differences when using the blorp blitter
authorNeil Roberts <neil@linux.intel.com>
Tue, 1 Jul 2014 15:04:56 +0000 (16:04 +0100)
committerNeil Roberts <neil@linux.intel.com>
Mon, 11 Aug 2014 10:24:46 +0000 (11:24 +0100)
commit1b417ea784b687857ab717950fd254a059f665db
tree0c16cc5cdf36706fd4c9ec6f22ab59a2b729c4b4
parent9276ef6f41626307c3da2ed94a77c0d51b6d8efd
i965: Don't check for format differences when using the blorp blitter

Previously the blorp blitter wouldn't be used if the source and destination
buffer had a different format other than swizzling between RGB and BGR and
adding or removing a dummy alpha channel. However there's no reason why the
blorp code path can't be used to do almost all format conversions so this
patch just removes the checks. However it does explicitly disable converting
to/from MESA_FORMAT_Z24_UNORM_X8_UINT because there is a similar check
brw_blorp_copytexsubimage.

This doesn't cause any Piglit test regressions at least on Ivybridge.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp