drm/nouveau: Use lazy fence waits when doing software interchannel sync.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Francisco Jerez 2010-10-14 21:55:23 +02:00 committed by Ben Skeggs
parent aa5ac7358c
commit fcccab2e4e
1 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ nouveau_fence_sync(struct nouveau_fence *fence,
if (!sema) {
/* Early card or broken userspace, fall back to
* software sync. */
return nouveau_fence_wait(fence, NULL, false, false);
return nouveau_fence_wait(fence, NULL, true, false);
}
/* try to take chan's mutex, if we can't take it right away
@ -399,7 +399,7 @@ nouveau_fence_sync(struct nouveau_fence *fence,
*/
if (!mutex_trylock(&chan->mutex)) {
free_semaphore(&sema->ref);
return nouveau_fence_wait(fence, NULL, false, false);
return nouveau_fence_wait(fence, NULL, true, false);
}
/* Make wchan wait until it gets signalled */