From f40a984413a9c06e5d382b248ba79ac7c17d2531 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 3 Nov 2015 16:43:48 +0000 Subject: [PATCH] igt/gem_userptr_blits: Correct the number of objects required Since we allocate 2 times count number of objects, that is the number of objects we should be using when checking for sufficient RAM to use for the test. References: https://bugs.freedesktop.org/show_bug.cgi?id=92799 Signed-off-by: Chris Wilson --- tests/gem_userptr_blits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index 6a6d5bff..6d38260f 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -897,8 +897,8 @@ static int test_coherency(int fd, int count) uint32_t start = 0; int i, ret; - intel_require_memory(count, sizeof(linear), CHECK_RAM); igt_info("Using 2x%d 1MiB buffers\n", count); + intel_require_memory(2*count, sizeof(linear), CHECK_RAM); ret = posix_memalign((void **)&memory, PAGE_SIZE, count*sizeof(linear)); igt_assert(ret == 0 && memory);