i965: Parameterize HiZ code to prepare for adding blitting.
authorPaul Berry <stereotype441@gmail.com>
Mon, 30 Apr 2012 05:00:46 +0000 (22:00 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 15 May 2012 22:09:22 +0000 (15:09 -0700)
commit2c5510b71b6348b686e76ecc2c34195080d566f4
treebd5f1af55ac012d6b2f67db975e53aab53efdf7a
parent610910a66d1a97ca51ad8a003bdeadfe9563d721
i965: Parameterize HiZ code to prepare for adding blitting.

This patch groups together the parameters used by the HiZ functions
into a new data structure, brw_hiz_resolve_params, rather than passing
each parameter individually between the HiZ functions.  This data
structure is a subclass of brw_blorp_params, which represents the
parameters of a general-purpose blit or resolve operation.  A future
patch will add another subclass for blits.

In addition, this patch generalizes the (width, height) parameters to
a full rect (x0, y0, x1, y1), since blitting operations will need to
be able to operate on arbitrary rectangles.  Also, it renames several
of the HiZ functions to reflect the expanded role they will serve.

v2: Rename brw_hiz_resolve_params to brw_hiz_op_params.  Move
gen{6,7}_blorp_exec() functions back into gen{6,7}_blorp.h.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_blorp.cpp [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_blorp.h [new file with mode: 0644]
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/i965/gen6_blorp.h
src/mesa/drivers/dri/i965/gen7_blorp.cpp
src/mesa/drivers/dri/i965/gen7_blorp.h