panfrost: Stop exposing internal panfrost_drm_*() functions
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:20:07 +0000 (14:20 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:58:51 +0000 (14:58 +0200)
panfrost_drm_submit_job() and panfrost_fence_create() are not used
outside of pan_drm.c.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
src/gallium/drivers/panfrost/pan_drm.c
src/gallium/drivers/panfrost/pan_screen.h

index 8c9a0612d7edff18d5196180cfa7198fa3f626a2..f17f56bc630787aa6dbbbc1b5f860d8c03648252 100644 (file)
@@ -175,7 +175,7 @@ panfrost_drm_export_bo(struct panfrost_screen *screen, int gem_handle, unsigned
         return TRUE;
 }
 
-int
+static int
 panfrost_drm_submit_job(struct panfrost_context *ctx, u64 job_desc, int reqs, struct pipe_surface *surf)
 {
         struct pipe_context *gallium = (struct pipe_context *) ctx;
@@ -242,7 +242,7 @@ panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws, bool
         return ret;
 }
 
-struct panfrost_fence *
+static struct panfrost_fence *
 panfrost_fence_create(struct panfrost_context *ctx)
 {
         struct pipe_context *gallium = (struct pipe_context *) ctx;
index ebc5fee5cfd628ae4fc7f85f428728095d8c76bd..83186ebb2f7f17505219d001e21e794d3010b95f 100644 (file)
@@ -89,13 +89,8 @@ int
 panfrost_drm_export_bo(struct panfrost_screen *screen, int gem_handle,
                        unsigned int stride, struct winsys_handle *whandle);
 int
-panfrost_drm_submit_job(struct panfrost_context *ctx, u64 job_desc, int reqs,
-                        struct pipe_surface *surf);
-int
 panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws,
                               bool is_scanout);
-struct panfrost_fence *
-panfrost_fence_create(struct panfrost_context *ctx);
 void
 panfrost_drm_force_flush_fragment(struct panfrost_context *ctx,
                                   struct pipe_fence_handle **fence);