intel/blorp: Refactor the HiZ op interface

This commit does a few things:

 1) Now that BLORP can do HiZ ops on gen8+, drop the gen6 prefix.
 2) Switch parameters to uint32_t to match the rest of blorp.
 3) Take a range of layers and loop internally.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
Jason Ekstrand
2017-06-05 11:32:19 -07:00
parent 42b10bbfe0
commit fbd8a33f61
4 changed files with 58 additions and 53 deletions

View File

@@ -209,9 +209,9 @@ enum blorp_hiz_op {
};
void
blorp_gen6_hiz_op(struct blorp_batch *batch,
struct blorp_surf *surf, unsigned level, unsigned layer,
enum blorp_hiz_op op);
blorp_hiz_op(struct blorp_batch *batch, struct blorp_surf *surf,
uint32_t level, uint32_t start_layer, uint32_t num_layers,
enum blorp_hiz_op op);
#ifdef __cplusplus
} /* end extern "C" */