From: Rafael Antognolli Date: Tue, 26 Feb 2019 19:56:32 +0000 (-0800) Subject: iris: Make intel_hiz_exec public. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76f9ca6cf96e9969a9eeff772cfdee5890ae805e;p=mesa.git iris: Make intel_hiz_exec public. Need to use it for fast clearing depth buffers. Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_resolve.c b/src/gallium/drivers/iris/iris_resolve.c index 7262c252afc..cd00d7fa526 100644 --- a/src/gallium/drivers/iris/iris_resolve.c +++ b/src/gallium/drivers/iris/iris_resolve.c @@ -532,7 +532,7 @@ sample_with_hiz(const struct gen_device_info *devinfo, * - 7.5.3.2 Depth Buffer Resolve * - 7.5.3.3 Hierarchical Depth Buffer Resolve */ -static void +void iris_hiz_exec(struct iris_context *ice, struct iris_batch *batch, struct iris_resource *res, diff --git a/src/gallium/drivers/iris/iris_resource.h b/src/gallium/drivers/iris/iris_resource.h index d9cb50de8b6..d6bef37d898 100644 --- a/src/gallium/drivers/iris/iris_resource.h +++ b/src/gallium/drivers/iris/iris_resource.h @@ -222,6 +222,13 @@ void iris_resource_disable_aux(struct iris_resource *res); #define INTEL_REMAINING_LAYERS UINT32_MAX #define INTEL_REMAINING_LEVELS UINT32_MAX +void +iris_hiz_exec(struct iris_context *ice, + struct iris_batch *batch, + struct iris_resource *res, + unsigned int level, unsigned int start_layer, + unsigned int num_layers, enum isl_aux_op op); + /** * Prepare a miptree for access *