i965: split gen{6,7}_blorp_exec functions into manageable chunks.
authorPaul Berry <stereotype441@gmail.com>
Mon, 30 Apr 2012 21:29:35 +0000 (14:29 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 15 May 2012 22:09:22 +0000 (15:09 -0700)
commit586b3894744819071bb1ad56383e3c0d9e5b7e1f
tree65f6cb050c938e6079373d679bf1e303813113ac
parent2c5510b71b6348b686e76ecc2c34195080d566f4
i965: split gen{6,7}_blorp_exec functions into manageable chunks.

This patch splits up the gen6_blorp_exec and gen7_blorp_exec
functions, which were very long, into simple component functions.
With a few exceptions, there is one function per state packet.

This will allow blit functionality to be added without significantly
complicating the code.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
v2: Rename the functions gen{6,7}_emit_wm_disable() to
gen{6,7}_emit_wm_config() (since the WM is not actually disabled
during HiZ ops; it simply doesn't have a program).  Also, on gen7,
split out the configration of 3DSTATE_PS to a separate function
gen7_emit_ps_config().
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/i965/gen7_blorp.cpp