@@ -73,6 +73,7 @@ static void single(int fd, uint32_t handle,
struct drm_i915_gem_exec_object2 obj;
struct drm_i915_gem_relocation_entry reloc;
uint32_t contexts[64];
+ uint32_t timeout = 1;
int n;
gem_require_ring(fd, e->exec_id | e->flags);
@@ -125,7 +126,7 @@ static void single(int fd, uint32_t handle,
count += 1024;
}
clock_gettime(CLOCK_MONOTONIC, &now);
- } while (elapsed(&start, &now) < 20.);
+ } while (elapsed(&start, &now) < timeout);
gem_sync(fd, handle);
clock_gettime(CLOCK_MONOTONIC, &now);
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> --- tests/gem_ctx_switch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)