[Intel-gfx] [PATCH] tests/gem_userptr_blits: Expanded userptr test cases
Chris Wilson
chris at chris-wilson.co.uk
Wed Jan 22 12:19:43 CET 2014
On Wed, Jan 22, 2014 at 10:41:38AM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> A set of userptr test cases to support the new feature.
There's just a couple of interface tests I'd like added.
1. Overlapping objects are not allowed (if sync)
2. a mmap() arena containing multiple objects invaldates all
i.e. (if sync)
ptr = mmap(fd, 4 * OBJECT_SIZE);
for (i = 0; i < 4; i++)
bo[i] = userptr(ptr + i * OBJECT_SIZE, OBJECT_SIZE)
blit(bo[i]);
munmap(ptr, 4 * OBJECT_SIZE); /* can do subranges if evil! */
for (i = 0; i < 4; i++)
blit(bo[i]) == EFAULT
Otherwise this has been a very useful testcase. Many, many thanks.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list