panfrost_{create,free,get}_batch() are only called inside pan_job.c.
Let's make them static.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
#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)
{
return batch;
}
-void
+static void
panfrost_free_batch(struct panfrost_batch *batch)
{
if (!batch)
ralloc_free(batch);
}
-struct panfrost_batch *
+static struct panfrost_batch *
panfrost_get_batch(struct panfrost_context *ctx,
const struct pipe_framebuffer_state *key)
{
/* 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);