Mesa (master): panfrost: Staticize a few cmdstream functions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 10 15:11:42 UTC 2020


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Apr  6 20:14:23 2020 -0400

panfrost: Staticize a few cmdstream functions

They are only used within the same source file.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>

---

 src/gallium/drivers/panfrost/pan_cmdstream.c |  6 +++---
 src/gallium/drivers/panfrost/pan_cmdstream.h | 12 ------------
 2 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c
index ac7ebf8c26c..5caf4576d96 100644
--- a/src/gallium/drivers/panfrost/pan_cmdstream.c
+++ b/src/gallium/drivers/panfrost/pan_cmdstream.c
@@ -54,7 +54,7 @@ panfrost_bo_access_for_stage(enum pipe_shader_type stage)
 /* TODO: Bifrost requires just a mali_shared_memory, without the rest of the
  * framebuffer */
 
-void
+static void
 panfrost_vt_attach_framebuffer(struct panfrost_context *ctx,
                                struct midgard_payload_vertex_tiler *vt)
 {
@@ -78,7 +78,7 @@ panfrost_vt_attach_framebuffer(struct panfrost_context *ctx,
         vt->postfix.shared_memory = batch->framebuffer.gpu;
 }
 
-void
+static void
 panfrost_vt_update_rasterizer(struct panfrost_context *ctx,
                               struct midgard_payload_vertex_tiler *tp)
 {
@@ -107,7 +107,7 @@ panfrost_vt_update_rasterizer(struct panfrost_context *ctx,
         }
 }
 
-void
+static void
 panfrost_vt_update_occlusion_query(struct panfrost_context *ctx,
                                    struct midgard_payload_vertex_tiler *tp)
 {
diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.h b/src/gallium/drivers/panfrost/pan_cmdstream.h
index 9ace7802ba2..7d5aa15fc56 100644
--- a/src/gallium/drivers/panfrost/pan_cmdstream.h
+++ b/src/gallium/drivers/panfrost/pan_cmdstream.h
@@ -40,18 +40,6 @@ panfrost_vt_init(struct panfrost_context *ctx,
                  enum pipe_shader_type stage,
                  struct midgard_payload_vertex_tiler *vtp);
 
-void
-panfrost_vt_attach_framebuffer(struct panfrost_context *ctx,
-                               struct midgard_payload_vertex_tiler *vt);
-
-void
-panfrost_vt_update_rasterizer(struct panfrost_context *ctx,
-                              struct midgard_payload_vertex_tiler *tp);
-
-void
-panfrost_vt_update_occlusion_query(struct panfrost_context *ctx,
-                                   struct midgard_payload_vertex_tiler *tp);
-
 void
 panfrost_vt_set_draw_info(struct panfrost_context *ctx,
                           const struct pipe_draw_info *info,



More information about the mesa-commit mailing list