Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199602
b: refs/heads/master
c: b118c1e
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Eric Anholt committed May 28, 2010
1 parent 7dc8580 commit a6febdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 468f0b44ce4b002ca7d9260f802a341854752c02
refs/heads/master: b118c1e363befe3d74469f4a014ce6353097f08a
8 changes: 3 additions & 5 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2914,18 +2914,16 @@ i915_gem_object_set_to_display_plane(struct drm_gem_object *obj)
return ret;
}

i915_gem_object_flush_cpu_write_domain(obj);

old_write_domain = obj->write_domain;
old_read_domains = obj->read_domains;

obj->read_domains &= I915_GEM_DOMAIN_GTT;

i915_gem_object_flush_cpu_write_domain(obj);

/* It should now be out of any other write domains, and we can update
* the domain values for our changes.
*/
BUG_ON((obj->write_domain & ~I915_GEM_DOMAIN_GTT) != 0);
obj->read_domains |= I915_GEM_DOMAIN_GTT;
obj->read_domains = I915_GEM_DOMAIN_GTT;
obj->write_domain = I915_GEM_DOMAIN_GTT;
obj_priv->dirty = 1;

Expand Down

0 comments on commit a6febdd

Please sign in to comment.