panfrost: Remove unused argument from panfrost_drm_submit_vs_fs_job()
authorRohan Garg <rohan.garg@collabora.com>
Thu, 29 Aug 2019 12:53:10 +0000 (14:53 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 29 Aug 2019 17:03:17 +0000 (19:03 +0200)
is_scanout is not used anywhere and can be inferred within
panfrost_drm_submit_vs_fs_job() if required.

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

index c3693bff56a236c5b9caac3b9c39253e513969b9..8e05fc936b2585b388bc2ba050dcfa54f5d5458f 100644 (file)
@@ -292,7 +292,7 @@ panfrost_drm_submit_job(struct panfrost_context *ctx, u64 job_desc, int reqs)
 }
 
 int
-panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws, bool is_scanout)
+panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws)
 {
         int ret = 0;
 
index 4d8ec2eadc9ee63cfcd673606dd969391a56cc58..f5bbd04b913fc4277c7c1091db51df5a2fdcb83b 100644 (file)
@@ -208,9 +208,8 @@ panfrost_job_submit(struct panfrost_context *ctx, struct panfrost_job *job)
         panfrost_scoreboard_link_batch(job);
 
         bool has_draws = job->last_job.gpu;
-        bool is_scanout = panfrost_is_scanout(ctx);
 
-        ret = panfrost_drm_submit_vs_fs_job(ctx, has_draws, is_scanout);
+        ret = panfrost_drm_submit_vs_fs_job(ctx, has_draws);
 
         if (ret)
                 fprintf(stderr, "panfrost_job_submit failed: %d\n", ret);
index 35fb8de26282bf7ad59abd09b28134a5f6dcc4df..02e8a96fabe2cbe0decb3ee45b935dafa791a445 100644 (file)
@@ -165,8 +165,7 @@ panfrost_drm_import_bo(struct panfrost_screen *screen, int fd);
 int
 panfrost_drm_export_bo(struct panfrost_screen *screen, const struct panfrost_bo *bo);
 int
-panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws,
-                              bool is_scanout);
+panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws);
 void
 panfrost_drm_force_flush_fragment(struct panfrost_context *ctx,
                                   struct pipe_fence_handle **fence);