On Wed, Jan 22, 2014 at 10:41:38AM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <[email protected]>
> 
> 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
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to