diff options
author | Jason Ekstrand <[email protected]> | 2017-11-21 14:00:44 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-20 13:49:24 -0800 |
commit | 79918389739e178da117ec3195594eaeaa943284 (patch) | |
tree | b3edb7925be44831eeb9a64c561ca8f473ee933a /src/intel/blorp/blorp.h | |
parent | 1900dd76d049d99f9bf256cccb1dee3a5ec3cb3b (diff) |
intel/blorp: Add a blorp_hiz_clear_depth_stencil helper
This is similar to blorp_gen8_hiz_clear_attachments except that it takes
actual images instead of trusting in the already set depth state.
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp.h')
-rw-r--r-- | src/intel/blorp/blorp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index ce3762c42fa..4626f2f83c2 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -170,6 +170,17 @@ 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); +void +blorp_hiz_clear_depth_stencil(struct blorp_batch *batch, + const struct blorp_surf *depth, + const struct blorp_surf *stencil, + uint32_t level, + uint32_t start_layer, uint32_t num_layers, + uint32_t x0, uint32_t y0, + uint32_t x1, uint32_t y1, + bool clear_depth, float depth_value, + bool clear_stencil, uint8_t stencil_value); + void blorp_gen8_hiz_clear_attachments(struct blorp_batch *batch, |