summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-06-20 20:24:03 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2016-06-20 20:24:03 +0200
commit92d3302da1fbf468bd07f3199899ba97650d356b (patch)
tree1393cb6e0d069170794d2c8751d89995e3fc6dad
parentebee437517daf1c3b7c4057833b53c52c5191750 (diff)
radeonsi: report a failure to parse dmesg instead of assertingdebug-dma
-rw-r--r--src/gallium/drivers/radeonsi/si_debug.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
index f3bcae94cd..112e68684f 100644
--- a/src/gallium/drivers/radeonsi/si_debug.c
+++ b/src/gallium/drivers/radeonsi/si_debug.c
@@ -730,7 +730,12 @@ static bool si_vm_fault_occured(struct si_context *sctx, uint32_t *out_addr)
/* Get the timestamp. */
if (sscanf(line, "[%u.%u]", &sec, &usec) != 2) {
- assert(0);
+ static bool hit = false;
+ if (!hit) {
+ fprintf(stderr, "%s: failed to parse line '%s'\n",
+ __func__, line);
+ hit = true;
+ }
continue;
}
timestamp = sec * 1000000llu + usec;