From: Alyssa Rosenzweig Date: Wed, 21 Aug 2019 16:32:55 +0000 (-0700) Subject: panfrost: Hoist job != NULL check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3c1ab2e9aae82b7b4e69679aefaefea2d9dc07f;p=mesa.git panfrost: Hoist job != NULL check Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index bfa73a7f334..4d8ec2eadc9 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -204,14 +204,12 @@ panfrost_job_submit(struct panfrost_context *ctx, struct panfrost_job *job) { int ret; + assert(job); panfrost_scoreboard_link_batch(job); bool has_draws = job->last_job.gpu; bool is_scanout = panfrost_is_scanout(ctx); - if (!job) - return; - ret = panfrost_drm_submit_vs_fs_job(ctx, has_draws, is_scanout); if (ret)