summaryrefslogtreecommitdiff
path: root/linux-core/i915_fence.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-06-15 17:13:11 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-06-15 17:13:11 +0200
commit3d5d41fa9823cf44138c8f4bc954bca80539d74e (patch)
tree7f060a0348405663e8a9a00e26a90dcc58cf21b3 /linux-core/i915_fence.c
parent84bea383538df83c049680497ba2179e50d07ca3 (diff)
i915: Fix handling of breadcrumb counter wraparounds.
Diffstat (limited to 'linux-core/i915_fence.c')
-rw-r--r--linux-core/i915_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/i915_fence.c b/linux-core/i915_fence.c
index 88daa57c..00873485 100644
--- a/linux-core/i915_fence.c
+++ b/linux-core/i915_fence.c
@@ -61,7 +61,7 @@ static void i915_perform_flush(drm_device_t * dev)
* First update fences with the current breadcrumb.
*/
- diff = sequence - fc->last_exe_flush;
+ diff = (sequence - fc->last_exe_flush) & BREADCRUMB_MASK;
if (diff < driver->wrap_diff && diff != 0) {
drm_fence_handler(dev, 0, sequence, DRM_FENCE_TYPE_EXE);
}