mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
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>
This commit is contained in:
parent
50158de812
commit
15559e6cb6
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user