diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-06 08:47:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-06 08:50:19 +0000 |
commit | 15559e6cb613fe152f71471643de0ac0c12332d4 (patch) | |
tree | a412b67dac23229ea3a2546757c2f6337d7414fe /tests/gem_wait.c | |
parent | 50158de8122fabdb34b8f9dd5cf43a2d9c72e0b4 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_wait.c')
-rw-r--r-- | tests/gem_wait.c | 4 |
1 files 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 */ |