From 6451008e8b6013351e3e7e26f6827a218a76fcb3 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 7 Oct 2019 15:48:33 -0700 Subject: intel: Refactor blorp_can_hiz_clear_depth() Prepare this function to be used in iris and to handle new Gen12 behavior. Reviewed-by: Sagar Ghuge Reviewed-by: Kenneth Graunke --- src/intel/blorp/blorp.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/intel/blorp/blorp.h') diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index df48e91cecc..ead261b6230 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -188,10 +188,11 @@ blorp_clear_depth_stencil(struct blorp_batch *batch, bool clear_depth, float depth_value, uint8_t stencil_mask, uint8_t stencil_value); bool -blorp_can_hiz_clear_depth(uint8_t gen, enum isl_format format, - uint32_t num_samples, - uint32_t x0, uint32_t y0, - uint32_t x1, uint32_t y1); +blorp_can_hiz_clear_depth(const struct gen_device_info *devinfo, + const struct isl_surf *surf, + enum isl_aux_usage aux_usage, + uint32_t level, uint32_t layer, + uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1); void blorp_hiz_clear_depth_stencil(struct blorp_batch *batch, const struct blorp_surf *depth, -- cgit v1.2.3