diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-15 17:13:11 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-15 17:13:11 +0200 |
commit | 3d5d41fa9823cf44138c8f4bc954bca80539d74e (patch) | |
tree | 7f060a0348405663e8a9a00e26a90dcc58cf21b3 /linux-core/i915_fence.c | |
parent | 84bea383538df83c049680497ba2179e50d07ca3 (diff) |
i915: Fix handling of breadcrumb counter wraparounds.
Diffstat (limited to 'linux-core/i915_fence.c')
-rw-r--r-- | linux-core/i915_fence.c | 2 |
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); } |