panfrost: Hoist job != NULL check
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user