batch->blorp->exec(batch, ¶ms);
}
}
+
+void
+blorp_hiz_stencil_op(struct blorp_batch *batch, struct blorp_surf *stencil,
+ uint32_t level, uint32_t start_layer,
+ uint32_t num_layers, enum isl_aux_op op)
+{
+ struct blorp_params params;
+ blorp_params_init(¶ms);
+
+ params.hiz_op = op;
+ params.full_surface_hiz_op = true;
+
+ for (uint32_t a = 0; a < num_layers; a++) {
+ const uint32_t layer = start_layer + a;
+
+ brw_blorp_surface_info_init(batch->blorp, ¶ms.stencil, stencil, level,
+ layer, stencil->surf->format, true);
+ params.x1 = minify(params.stencil.surf.logical_level0_px.width,
+ params.stencil.view.base_level);
+ params.y1 = minify(params.stencil.surf.logical_level0_px.height,
+ params.stencil.view.base_level);
+ params.dst.surf.samples = params.stencil.surf.samples;
+ params.dst.surf.logical_level0_px =
+ params.stencil.surf.logical_level0_px;
+ params.dst.view = params.stencil.view;
+ params.num_samples = params.stencil.surf.samples;
+
+ batch->blorp->exec(batch, ¶ms);
+ }
+}
uint32_t level, uint32_t start_layer, uint32_t num_layers,
enum isl_aux_op op);
+void
+blorp_hiz_stencil_op(struct blorp_batch *batch, struct blorp_surf *stencil,
+ uint32_t level, uint32_t start_layer,
+ uint32_t num_layers, enum isl_aux_op op);
#ifdef __cplusplus
} /* end extern "C" */
#endif /* __cplusplus */