panfrost: Staticize a few cmdstream functions
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 7 Apr 2020 00:14:23 +0000 (20:14 -0400)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 10 Apr 2020 14:52:56 +0000 (16:52 +0200)
They are only used within the same source file.

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

src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_cmdstream.h

index ac7ebf8c26c7bd404f4f8df637c69c87a0b2a808..5caf4576d96da9b66b239520f387c302e0795b3c 100644 (file)
@@ -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)
 {
index 9ace7802ba2c49da69707490c17625e767b44137..7d5aa15fc56ba293d3d3638fd0b75ad56e6a565b 100644 (file)
@@ -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,