drm/nouveau: use shared fences for readable objects
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 9 Apr 2014 14:19:30 +0000 (16:19 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 2 Sep 2014 15:28:48 +0000 (17:28 +0200)
commit809e9447b92ffe1346b2d6ec390e212d5307f61c
tree11d04d4ef34cd681cf63efa11a90992c7865eb27
parent9242829a87e970773628f30522d2278dd91890ec
drm/nouveau: use shared fences for readable objects

nouveau keeps track in userspace whether a buffer is being
written to or being read, but it doesn't use that information.

Change this to allow multiple readers on the same bo.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Acked-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.h
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nouveau_fence.h
drivers/gpu/drm/nouveau/nouveau_gem.c