From 76f9ca6cf96e9969a9eeff772cfdee5890ae805e Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Tue, 26 Feb 2019 11:56:32 -0800 Subject: [PATCH] iris: Make intel_hiz_exec public. Need to use it for fast clearing depth buffers. Reviewed-by: Kenneth Graunke --- src/gallium/drivers/iris/iris_resolve.c | 2 +- src/gallium/drivers/iris/iris_resource.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 * -- 2.30.2