diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-21 09:32:55 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 10:38:31 -0700 |
commit | a3c1ab2e9aae82b7b4e69679aefaefea2d9dc07f (patch) | |
tree | 7804abba2811d56f14a73549677cbf18202eb3bb /src | |
parent | 9cee21f0c9aba71c6cfaaade5782aa805287e139 (diff) |
panfrost: Hoist job != NULL check
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_job.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) |