diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-06 08:43:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-06 09:21:55 +0100 |
commit | 18d2130110331e45423dff96aeec3ea802fa0857 (patch) | |
tree | 95ebd7e2241725061b3d22eab1734726572b8f95 /tests/gem_evict_alignment.c | |
parent | 39329479a51768e64cf710bc14b50803446e554d (diff) |
igt/gem_evict_alignment: Fix the memory limits checking
We actually allocate twice as many bo as needed to fill the aperture to
cause ENOSPC, but the entire payload has to still fit into RAM.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75138
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_evict_alignment.c')
-rw-r--r-- | tests/gem_evict_alignment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c index 41c9f178..e814f36c 100644 --- a/tests/gem_evict_alignment.c +++ b/tests/gem_evict_alignment.c @@ -134,7 +134,7 @@ static void minor_evictions(int fd, int size, int count) uint32_t *bo, *sel; int n, m, alignment, pass, fail; - igt_require(intel_check_memory(count, size, CHECK_RAM)); + igt_require(intel_check_memory(2*count, size, CHECK_RAM)); bo = malloc(3*count*sizeof(*bo)); igt_assert(bo); |