intel/blorp: Add an entrypoint for clearing depth and stencil
[mesa.git] / src / intel / blorp / blorp.h
index 480f1bb104fc77cb8a6dd137e46f416fbc105b15..b178ae374d60e15ac8d14112080da3154978f990 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef BLORP_H
+#define BLORP_H
 
 #include <stdint.h>
 #include <stdbool.h>
@@ -133,6 +134,16 @@ blorp_clear(struct blorp_batch *batch,
             union isl_color_value clear_color,
             const bool color_write_disable[4]);
 
+void
+blorp_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,
+                          uint8_t stencil_mask, uint8_t stencil_value);
+
 void
 blorp_ccs_resolve(struct blorp_batch *batch,
                   struct blorp_surf *surf, enum isl_format format);
@@ -162,3 +173,5 @@ blorp_gen6_hiz_op(struct blorp_batch *batch,
 #ifdef __cplusplus
 } /* end extern "C" */
 #endif /* __cplusplus */
+
+#endif /* BLORP_H */