Signed-off-by: Marius Vlad <marius.c.v...@intel.com>
---
 tests/gem_ctx_switch.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/gem_ctx_switch.c b/tests/gem_ctx_switch.c
index 7b27336..066a5fc 100644
--- a/tests/gem_ctx_switch.c
+++ b/tests/gem_ctx_switch.c
@@ -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);
 
-- 
2.5.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to