meta: Split _swrast_BlitFramebuffer out of the meta blit path.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 05:16:01 +0000 (22:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 May 2014 00:18:55 +0000 (17:18 -0700)
commit54540ea691e926b36a81a9b1e27b8f035995d07d
treee47e4e36d08484d82377ecf0ac306582ec0d03b5
parentd89ce333ccc585ef88fe10e61de17b885e03eab4
meta: Split _swrast_BlitFramebuffer out of the meta blit path.

Separating the software fallbacks from the rest of the meta path (which
is usually hardware accelerated) gives callers better control over their
blitting options.

For example, i965 might want to try meta blit, hardware blits, then
swrast as a last resort.  Splitting it makes that possible.

This updates all callers to maintain the existing behavior (even in the
few cases where it isn't desirable behavior - later patches can change
that).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta.h
src/mesa/drivers/common/meta_blit.c
src/mesa/drivers/dri/i915/intel_fbo.c
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/nouveau/nouveau_driver.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/x11/xm_dd.c