Commit 3e1ad79b authored by Christian König's avatar Christian König
Browse files

drm/nouveau: always wait for the exclusive fence



Drivers also need to to sync to the exclusive fence when
a shared one is present.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210702111642.17259-4-christian.koenig@amd.com
parent 9d38814d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ nouveau_fence_sync(struct nouveau_bo *nvbo, struct nouveau_channel *chan, bool e
	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;