Mesa (master): panfrost: Remove unused argument from panfrost_drm_submit_vs_fs_job()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 29 17:03:58 UTC 2019


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

Author: Rohan Garg <rohan.garg at collabora.com>
Date:   Thu Aug 29 14:53:10 2019 +0200

panfrost: Remove unused argument from panfrost_drm_submit_vs_fs_job()

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 at collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>

---

 src/gallium/drivers/panfrost/pan_drm.c    | 2 +-
 src/gallium/drivers/panfrost/pan_job.c    | 3 +--
 src/gallium/drivers/panfrost/pan_screen.h | 3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_drm.c b/src/gallium/drivers/panfrost/pan_drm.c
index c3693bff56a..8e05fc936b2 100644
--- a/src/gallium/drivers/panfrost/pan_drm.c
+++ b/src/gallium/drivers/panfrost/pan_drm.c
@@ -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;
 
diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 4d8ec2eadc9..f5bbd04b913 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -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);
diff --git a/src/gallium/drivers/panfrost/pan_screen.h b/src/gallium/drivers/panfrost/pan_screen.h
index 35fb8de2628..02e8a96fabe 100644
--- a/src/gallium/drivers/panfrost/pan_screen.h
+++ b/src/gallium/drivers/panfrost/pan_screen.h
@@ -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);




More information about the mesa-commit mailing list