From 15559e6cb613fe152f71471643de0ac0c12332d4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 6 Mar 2015 08:47:06 +0000 Subject: [PATCH] igt/gem_wait: Timeout parameter to the WAIT ioctl is signed So convert from uint64_t to int64_t. The distinction becomes important when you realise what test we were missing... Signed-off-by: Chris Wilson --- tests/gem_wait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gem_wait.c b/tests/gem_wait.c index 46b381b9..515f7f67 100644 --- a/tests/gem_wait.c +++ b/tests/gem_wait.c @@ -70,7 +70,7 @@ do_time_diff(struct timespec *end, struct timespec *start) } static int -gem_bo_wait_timeout(int fd, uint32_t handle, uint64_t *timeout_ns) +gem_bo_wait_timeout(int fd, uint32_t handle, int64_t *timeout_ns) { struct drm_i915_gem_wait wait; int ret; @@ -110,7 +110,7 @@ static void render_timeout(int fd) { drm_intel_bufmgr *bufmgr; struct intel_batchbuffer *batch; - uint64_t timeout = ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC; + int64_t timeout = ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC; int ret; const bool do_signals = true; /* signals will seem to make the operation * use less process CPU time */