summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2019-06-25 08:41:06 +0200
committerTomeu Vizoso <[email protected]>2019-06-27 09:13:42 +0200
commitde02fb19ed54edc87d820c36c387b9c0cbdb2972 (patch)
treee5f5896bde479b7d0b02575ad2c9a13c9872c9e3 /src
parentfa36c194fd72067eb0fe8110283ce7f8a54b6823 (diff)
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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_drm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_drm.c b/src/gallium/drivers/panfrost/pan_drm.c
index 4f354190455..7ffceb9156c 100644
--- a/src/gallium/drivers/panfrost/pan_drm.c
+++ b/src/gallium/drivers/panfrost/pan_drm.c
@@ -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;
}