From d1119ab7b6e7d92505f4855e4f9f4d19e5a94804 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 6 Mar 2017 17:37:49 -0800 Subject: blorp/clear: Add a binding-table-based CCS resolve function v2: - Do layered resolves. (Jason Ekstrand): - Replace "bt" suffix with "attachment". - Rename helper function to prepare_ccs_resolve. - Move blorp_params_init() into helper function. Signed-off-by: Nanley Chery Reviewed-by: Iago Toral Quiroga Reviewed-by: Jason Ekstrand --- src/intel/blorp/blorp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/intel/blorp/blorp.h') diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index 744c1b1ea0a..d5226c22481 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -191,6 +191,17 @@ blorp_ccs_resolve(struct blorp_batch *batch, enum isl_format format, enum blorp_fast_clear_op resolve_op); +/* Resolves subresources of the image subresource range specified in the + * binding table. + */ +void +blorp_ccs_resolve_attachment(struct blorp_batch *batch, + const uint32_t binding_table_offset, + struct blorp_surf * const surf, + const uint32_t level, const uint32_t num_layers, + const enum isl_format format, + const enum blorp_fast_clear_op resolve_op); + /** * For an overview of the HiZ operations, see the following sections of the * Sandy Bridge PRM, Volume 1, Part2: -- cgit v1.2.3