diff options
author | Nicolai Hähnle <[email protected]> | 2017-11-10 17:13:27 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-20 18:16:03 +0100 |
commit | f5ea8d18ff8b60dbd8864aad7128140e2085862d (patch) | |
tree | dce664b58413131943603daa2d3f298a767ce58e /src/gallium/drivers/ddebug | |
parent | 16f8da299700e714fd5aff265b8f28fe2badfa95 (diff) |
ddebug: fix the hang detection timeout calculation
Fixes: c9fefa062b36 ("ddebug: rewrite to always use a threaded approach")
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c index e908410a33d..c404ea0607f 100644 --- a/src/gallium/drivers/ddebug/dd_draw.c +++ b/src/gallium/drivers/ddebug/dd_draw.c @@ -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); |