diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 58c789da95a3..8b50d4820389 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -2872,6 +2872,13 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data, | |||
2872 | return -EBADF; | 2872 | return -EBADF; |
2873 | } | 2873 | } |
2874 | 2874 | ||
2875 | /* Update the active list for the hardware's current position. | ||
2876 | * Otherwise this only updates on a delayed timer or when irqs are | ||
2877 | * actually unmasked, and our working set ends up being larger than | ||
2878 | * required. | ||
2879 | */ | ||
2880 | i915_gem_retire_requests(dev); | ||
2881 | |||
2875 | obj_priv = obj->driver_private; | 2882 | obj_priv = obj->driver_private; |
2876 | /* Don't count being on the flushing list against the object being | 2883 | /* Don't count being on the flushing list against the object being |
2877 | * done. Otherwise, a buffer left on the flushing list but not getting | 2884 | * done. Otherwise, a buffer left on the flushing list but not getting |