Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185621
b: refs/heads/master
c: 4a87b8c
h: refs/heads/master
i:
  185619: 8734748
v: v3
  • Loading branch information
Daniel Vetter authored and Eric Anholt committed Feb 26, 2010
1 parent c42383d commit dfe6239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 798750e30d3de7932b0ac420f8fae2a970f2ac34
refs/heads/master: 4a87b8ca2185199c5d1b37b570efffd2e46fe813
3 changes: 3 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,7 @@ int
i915_gem_object_unbind(struct drm_gem_object *obj)
{
struct drm_device *dev = obj->dev;
drm_i915_private_t *dev_priv = dev->dev_private;
struct drm_i915_gem_object *obj_priv = obj->driver_private;
int ret = 0;

Expand Down Expand Up @@ -2042,8 +2043,10 @@ i915_gem_object_unbind(struct drm_gem_object *obj)
}

/* Remove ourselves from the LRU list if present. */
spin_lock(&dev_priv->mm.active_list_lock);
if (!list_empty(&obj_priv->list))
list_del_init(&obj_priv->list);
spin_unlock(&dev_priv->mm.active_list_lock);

if (i915_gem_object_is_purgeable(obj_priv))
i915_gem_object_truncate(obj);
Expand Down

0 comments on commit dfe6239

Please sign in to comment.