[Mesa-dev] [PATCH 3/4] panfrost/decode: Wait for a job to finish before dumping

Tomeu Vizoso tomeu.vizoso at collabora.com
Tue Jun 25 07:27:53 UTC 2019


Then we can get some information back about any exception that might
have happened.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
 src/gallium/drivers/panfrost/pan_drm.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_drm.c b/src/gallium/drivers/panfrost/pan_drm.c
index 2602acea2988..a69d2aa39551 100644
--- a/src/gallium/drivers/panfrost/pan_drm.c
+++ b/src/gallium/drivers/panfrost/pan_drm.c
@@ -245,9 +245,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;
 }
-- 
2.20.1



More information about the mesa-dev mailing list