Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145359
b: refs/heads/master
c: cfa16a0
h: refs/heads/master
i:
  145357: 5ed1f37
  145355: 138f06a
  145351: b4ce5b6
  145343: 9681397
v: v3
  • Loading branch information
Eric Anholt committed May 27, 2009
1 parent 339a287 commit 44770dc
Show file tree
Hide file tree
Showing 2 changed files with 11 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: e76a16deb8785317a23cca7204331af053e0fb4e
refs/heads/master: cfa16a0de5392c54db553ec2233a7110e4b4da7a
10 changes: 10 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2423,6 +2423,16 @@ i915_gem_clflush_object(struct drm_gem_object *obj)
if (obj_priv->pages == NULL)
return;

/* XXX: The 865 in particular appears to be weird in how it handles
* cache flushing. We haven't figured it out, but the
* clflush+agp_chipset_flush doesn't appear to successfully get the
* data visible to the PGU, while wbinvd + agp_chipset_flush does.
*/
if (IS_I865G(obj->dev)) {
wbinvd();
return;
}

drm_clflush_pages(obj_priv->pages, obj->size / PAGE_SIZE);
}

Expand Down

0 comments on commit 44770dc

Please sign in to comment.