summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/i915/gem_exec_reloc.c')
-rw-r--r--tests/i915/gem_exec_reloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
index a897cc67..397c335e 100644
--- a/tests/i915/gem_exec_reloc.c
+++ b/tests/i915/gem_exec_reloc.c
@@ -407,7 +407,7 @@ static void __many_active(int i915, unsigned engine, unsigned long count)
static void many_active(int i915, unsigned engine)
{
- const uint64_t max = gem_aperture_size(i915) / 2;
+ const uint64_t max = 2048;
unsigned long count = 256;
igt_until_timeout(2) {
@@ -421,7 +421,7 @@ static void many_active(int i915, unsigned engine)
__many_active(i915, engine, count);
count <<= 1;
- if (count * 8 >= max)
+ if (count >= max)
break;
}
}