summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-04-03 10:24:06 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-04-03 10:29:15 +0200
commit38d18acb8f3617d79735f71564d9f49e608461ec (patch)
tree2c57303594400a9616741673864ed1180c5de953
parent139e4bbc73c65d6e1d7fc831ae15c8b28f92e821 (diff)
Add a fence flush event to each fence-signaled check when lazy-waiting
to make sure we don't lose any sequence numbers if, for some reason, they don't generate an IRQ.
-rw-r--r--linux-core/drm_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index 6dd04a35..be075bb3 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -301,7 +301,7 @@ static int drm_fence_lazy_wait(drm_device_t *dev,
do {
DRM_WAIT_ON(ret, fc->fence_queue, 3 * DRM_HZ,
- fence_signaled(dev, fence, mask, 0));
+ fence_signaled(dev, fence, mask, 1));
if (time_after_eq(jiffies, _end))
break;
} while (ret == -EINTR && ignore_signals);