summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_drm.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-14 09:11:09 +0200
committerBoris Brezillon <[email protected]>2019-09-18 10:28:03 +0200
commit1e47c3ee7b0d3cb4cd99db18d0919c08b476105d (patch)
tree8f2bd811153ee665ee7da5d2eeb19d995e3cdee1 /src/gallium/drivers/panfrost/pan_drm.c
parent07085fe8a4c516353454f71d3e34b1dddb844cdd (diff)
panfrost: Stop passing has_draws to panfrost_drm_submit_vs_fs_batch()
has_draws can be inferred directly from the batch->last_job value, no need to pass it around. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_drm.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_drm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_drm.c b/src/gallium/drivers/panfrost/pan_drm.c
index b77af714d11..c41701e16ff 100644
--- a/src/gallium/drivers/panfrost/pan_drm.c
+++ b/src/gallium/drivers/panfrost/pan_drm.c
@@ -271,9 +271,10 @@ panfrost_drm_submit_batch(struct panfrost_batch *batch, u64 first_job_desc,
}
int
-panfrost_drm_submit_vs_fs_batch(struct panfrost_batch *batch, bool has_draws)
+panfrost_drm_submit_vs_fs_batch(struct panfrost_batch *batch)
{
struct panfrost_context *ctx = batch->ctx;
+ bool has_draws = batch->last_job.gpu;
int ret = 0;
panfrost_batch_add_bo(batch, ctx->scratchpad);