Mesa (master): panfrost: Stop exposing internal panfrost_*_batch() functions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Sep 18 09:05:31 UTC 2019


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

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Fri Sep 13 18:32:42 2019 +0200

panfrost: Stop exposing internal panfrost_*_batch() functions

panfrost_{create,free,get}_batch() are only called inside pan_job.c.
Let's make them static.

Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/gallium/drivers/panfrost/pan_job.c |  6 +++---
 src/gallium/drivers/panfrost/pan_job.h | 11 -----------
 2 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 00df9006342..03119e64384 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -31,7 +31,7 @@
 #include "util/u_format.h"
 #include "util/u_pack_color.h"
 
-struct panfrost_batch *
+static struct panfrost_batch *
 panfrost_create_batch(struct panfrost_context *ctx,
                       const struct pipe_framebuffer_state *key)
 {
@@ -54,7 +54,7 @@ panfrost_create_batch(struct panfrost_context *ctx,
         return batch;
 }
 
-void
+static void
 panfrost_free_batch(struct panfrost_batch *batch)
 {
         if (!batch)
@@ -79,7 +79,7 @@ panfrost_free_batch(struct panfrost_batch *batch)
         ralloc_free(batch);
 }
 
-struct panfrost_batch *
+static struct panfrost_batch *
 panfrost_get_batch(struct panfrost_context *ctx,
                    const struct pipe_framebuffer_state *key)
 {
diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h
index fe15e2dddab..b0580ea2d47 100644
--- a/src/gallium/drivers/panfrost/pan_job.h
+++ b/src/gallium/drivers/panfrost/pan_job.h
@@ -116,17 +116,6 @@ struct panfrost_batch {
 /* Functions for managing the above */
 
 struct panfrost_batch *
-panfrost_create_batch(struct panfrost_context *ctx,
-                      const struct pipe_framebuffer_state *key);
-
-void
-panfrost_free_batch(struct panfrost_batch *batch);
-
-struct panfrost_batch *
-panfrost_get_batch(struct panfrost_context *ctx,
-                   const struct pipe_framebuffer_state *key);
-
-struct panfrost_batch *
 panfrost_get_batch_for_fbo(struct panfrost_context *ctx);
 
 void




More information about the mesa-commit mailing list