Module: Mesa
Branch: main
Commit: c76cb19b010436dca2cb9a2570b1ae571b31e509
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c76cb19b010436dca2cb9a2570b1ae571b31e509

Author: Lionel Landwerlin <[email protected]>
Date:   Fri Nov 10 14:03:51 2023 +0200

anv/blorp: move helper function about BTI changes to blorp

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26247>

---

 src/intel/blorp/blorp_genX_exec.h  | 10 ++++++++++
 src/intel/vulkan/genX_blorp_exec.c | 10 ----------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/intel/blorp/blorp_genX_exec.h 
b/src/intel/blorp/blorp_genX_exec.h
index f0add131e45..1edef3106b2 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -2004,6 +2004,16 @@ blorp_update_clear_color(UNUSED struct blorp_batch 
*batch,
 #endif
 }
 
+static bool
+blorp_uses_bti_rt_writes(const struct blorp_batch *batch, const struct 
blorp_params *params)
+{
+   if (batch->flags & (BLORP_BATCH_USE_BLITTER | BLORP_BATCH_USE_COMPUTE))
+      return false;
+
+   /* HIZ clears use WM_HZ ops rather than a clear shader using RT writes. */
+   return params->hiz_op == ISL_AUX_OP_NONE;
+}
+
 static void
 blorp_exec_3d(struct blorp_batch *batch, const struct blorp_params *params)
 {
diff --git a/src/intel/vulkan/genX_blorp_exec.c 
b/src/intel/vulkan/genX_blorp_exec.c
index a7a9024df2c..1cdd16cdf1a 100644
--- a/src/intel/vulkan/genX_blorp_exec.c
+++ b/src/intel/vulkan/genX_blorp_exec.c
@@ -261,16 +261,6 @@ blorp_get_l3_config(struct blorp_batch *batch)
    return cmd_buffer->state.current_l3_config;
 }
 
-static bool
-blorp_uses_bti_rt_writes(const struct blorp_batch *batch, const struct 
blorp_params *params)
-{
-   if (batch->flags & (BLORP_BATCH_USE_BLITTER | BLORP_BATCH_USE_COMPUTE))
-      return false;
-
-   /* HIZ clears use WM_HZ ops rather than a clear shader using RT writes. */
-   return params->hiz_op == ISL_AUX_OP_NONE;
-}
-
 static void
 blorp_exec_on_render(struct blorp_batch *batch,
                      const struct blorp_params *params)

Reply via email to