has_draws can be inferred directly from the batch->last_job value, no
need to pass it around.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
}
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);
panfrost_scoreboard_link_batch(batch);
- bool has_draws = batch->last_job.gpu;
-
- ret = panfrost_drm_submit_vs_fs_batch(batch, has_draws);
+ ret = panfrost_drm_submit_vs_fs_batch(batch);
if (ret)
fprintf(stderr, "panfrost_batch_submit failed: %d\n", ret);
int
panfrost_drm_export_bo(struct panfrost_screen *screen, const struct panfrost_bo *bo);
int
-panfrost_drm_submit_vs_fs_batch(struct panfrost_batch *batch, bool has_draws);
+panfrost_drm_submit_vs_fs_batch(struct panfrost_batch *batch);
unsigned
panfrost_drm_query_gpu_version(struct panfrost_screen *screen);
int