nouveau: add coherent BO attribute
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 21 May 2015 06:08:28 +0000 (15:08 +0900)
committerMartin Peres <martin.peres@free.fr>
Thu, 21 May 2015 18:20:29 +0000 (21:20 +0300)
commita1acffd4e0968ffa65b673163574188a00c9ab7e
treeee10448a81d0dd01de719367eeff9559e7474040
parente9ea1f42d14e10852f292f3470aee260c7349978
nouveau: add coherent BO attribute

Add a flag allowing Nouveau to specify that an object should be coherent
at allocation time. This is required for some class of objects like
fences which are randomly-accessed by both the CPU and GPU. This flag
instructs the kernel driver to make sure the object remains coherent
even on architectures for which coherency is not guaranteed by the bus.

Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
include/drm/nouveau_drm.h
nouveau/abi16.c
nouveau/nouveau.h