diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-14 10:30:36 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-14 10:30:36 +0100 |
commit | 52ac9a4b57f20f2dc019a973237f2f97ddb0ebf3 (patch) | |
tree | ec6126a306f8c8f1aa60eb9f56b802d3aabe7f56 /tests/gem_userptr_blits.c | |
parent | e74dd22ff89e007e637f16f661f06d4857a54224 (diff) |
igt/gem_userptr_blits: Add missing RAM check before coherency tests
References: https://bugs.freedesktop.org/show_bug.cgi?id=79237
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index 454db58e..11aa21ee 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -835,6 +835,7 @@ static int test_coherency(int fd, int count) uint32_t start = 0; int i, ret; + igt_require(count, sizeof(linear), CHECK_RAM); igt_info("Using 2x%d 1MiB buffers\n", count); ret = posix_memalign((void **)&memory, PAGE_SIZE, count*sizeof(linear)); |