Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329342
b: refs/heads/master
c: c4670ad
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Aug 21, 2012
1 parent 4209196 commit f929ce4
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6c085a728cf000ac1865d66f8c9b52935558b328
refs/heads/master: c4670ad080a1fe60d49f850e11f64a41db525496
4 changes: 4 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,8 @@ i915_gem_object_put_pages_gtt(struct drm_i915_gem_object *obj)
int page_count = obj->base.size / PAGE_SIZE;
int ret, i;

BUG_ON(obj->gtt_space);

if (obj->pages == NULL)
return 0;

Expand Down Expand Up @@ -2293,6 +2295,8 @@ i915_gem_object_unbind(struct drm_i915_gem_object *obj)
if (obj->pin_count)
return -EBUSY;

BUG_ON(obj->pages == NULL);

ret = i915_gem_object_finish_gpu(obj);
if (ret)
return ret;
Expand Down

0 comments on commit f929ce4

Please sign in to comment.