ddebug: fix the hang detection timeout calculation

Fixes: c9fefa062b ("ddebug: rewrite to always use a threaded approach")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle
2017-11-10 17:13:27 +01:00
parent 16f8da2997
commit f5ea8d18ff

View File

@@ -1034,10 +1034,10 @@ dd_thread_main(void *input)
/* Fences can be NULL legitimately when timeout detection is disabled. */
if ((fence &&
!screen->fence_finish(screen, NULL, fence,
dscreen->timeout_ms * 1000*1000)) ||
(uint64_t)dscreen->timeout_ms * 1000*1000)) ||
(fence2 &&
!screen->fence_finish(screen, NULL, fence2,
dscreen->timeout_ms * 1000*1000))) {
(uint64_t)dscreen->timeout_ms * 1000*1000))) {
mtx_lock(&dctx->mutex);
list_splice(&records, &dctx->records);
dd_report_hang(dctx);