drm/nouveau: always wait for the exclusive fence
[linux-2.6-microblaze.git] / drivers / gpu / drm / nouveau / nouveau_fence.c
index e5dcbf6..05d0b3e 100644 (file)
@@ -355,10 +355,10 @@ nouveau_fence_sync(struct nouveau_bo *nvbo, struct nouveau_channel *chan, bool e
                        return ret;
        }
 
-       fobj = dma_resv_get_list(resv);
-       fence = dma_resv_get_excl(resv);
+       fobj = dma_resv_shared_list(resv);
+       fence = dma_resv_excl_fence(resv);
 
-       if (fence && (!exclusive || !fobj || !fobj->shared_count)) {
+       if (fence) {
                struct nouveau_channel *prev = NULL;
                bool must_wait = true;