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@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Boris Brezillon 2019-09-13 18:32:42 +02:00
parent 8d5f905faa
commit 2b771b8424
2 changed files with 3 additions and 14 deletions

View file

@ -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)
{

View file

@ -115,17 +115,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);