iris: Make intel_hiz_exec public.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 26 Feb 2019 19:56:32 +0000 (11:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Mar 2019 05:27:02 +0000 (22:27 -0700)
Need to use it for fast clearing depth buffers.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_resource.h

index 7262c252afc06cd7c195c5bec0d5a49a85ac0353..cd00d7fa52662fc5c546093af81a9d5fc4e205e7 100644 (file)
@@ -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,
index d9cb50de8b6d677bb7fa5fcbcae6717c42430b56..d6bef37d898a778f173cb1c4337f8767387d3e7e 100644 (file)
@@ -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
  *