igt/gem_userptr_blits: Shared memory allocations
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Jul 2014 09:16:54 +0000 (10:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Jul 2014 09:41:28 +0000 (10:41 +0100)
commit9344aa78e8ad1eb36e7cf17686907d4259d34235
tree9a7ebce5dcbfd89b5f31169f9cf80cad08880942
parentf47ee31dd5d5a5099ed6f5d4a59a12a2f83c8cae
igt/gem_userptr_blits: Shared memory allocations

The forked tests allocate the bo (and thus for userptr, the memory) in
the parent and pass them to all children. The difference for userptr is
that we allocate system memory which the kernel then copies into each
child. As the children need to access the memory for their checks, it
does need to be shared - so allocate the userptr from shared memory!

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80208
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/gem_userptr_blits.c