Re: [PATCH] tests/gem_userptr_blits: Expanded userptr test cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 22, 2014 at 10:41:38AM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> 
> 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
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux