i965/blorp: Refactor surface format determination.
authorPaul Berry <stereotype441@gmail.com>
Wed, 6 Jun 2012 17:34:12 +0000 (10:34 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 7 Jun 2012 18:03:15 +0000 (11:03 -0700)
commit040d0157341381708c35c2f27721ebffa2ee1db2
treec742cc1f820bea09f0fd494bf88377c6eb9c0e6c
parent05790746df077183d6c3caf87ca2d276a60302a8
i965/blorp: Refactor surface format determination.

This patch moves the responsibility for deciding on the format of the
source and destination surfaces from the
gen{6,7}_blorp_emit_surface_state() functions to
brw_blorp_surface_info::set(), which is shared between Gen6 and Gen7.
This will make it possible to add support for more surface formats
without code duplication.

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