mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
panfrost/decode: Wait for a job to finish before dumping
Then we can get some information back about any exception that might have happened. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
fa36c194fd
commit
de02fb19ed
1 changed files with 4 additions and 2 deletions
|
|
@ -231,9 +231,11 @@ panfrost_drm_submit_job(struct panfrost_context *ctx, u64 job_desc, int reqs, st
|
|||
}
|
||||
|
||||
/* Trace the job if we're doing that */
|
||||
|
||||
if (pan_debug & PAN_DBG_TRACE)
|
||||
if (pan_debug & PAN_DBG_TRACE) {
|
||||
/* Wait so we can get errors reported back */
|
||||
drmSyncobjWait(screen->fd, &ctx->out_sync, 1, INT64_MAX, 0, NULL);
|
||||
pandecode_replay_jc(submit.jc, FALSE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue