summaryrefslogtreecommitdiff
path: root/tests/gem_userptr_blits.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-11-03 16:43:48 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-11-03 16:52:57 +0000
commitf40a984413a9c06e5d382b248ba79ac7c17d2531 (patch)
treeb4af7fc176c13cb08ef6196a232c6f83551678b7 /tests/gem_userptr_blits.c
parentce65232cf5039798045767c65f2110f3b2a8ffd0 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_userptr_blits.c')
-rw-r--r--tests/gem_userptr_blits.c2
1 files changed, 1 insertions, 1 deletions
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);