Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223019
b: refs/heads/master
c: 7a19487
h: refs/heads/master
i:
  223017: d317dfa
  223015: ab13e4d
v: v3
  • Loading branch information
Chris Wilson committed Dec 7, 2010
1 parent 0419e44 commit 79d15b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: 2a1292fd4cf1558b4a60781227d503c9111d9075
refs/heads/master: 7a1948768c2998f5bddb2327696cbe3161f468ed
12 changes: 11 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -4374,10 +4374,20 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data,
* use this buffer rather sooner than later, so issuing the required
* flush earlier is beneficial.
*/
if (obj->write_domain & I915_GEM_GPU_DOMAINS)
if (obj->write_domain & I915_GEM_GPU_DOMAINS) {
i915_gem_flush_ring(dev, file_priv,
obj_priv->ring,
0, obj->write_domain);
} else if (obj_priv->ring->outstanding_lazy_request) {
/* This ring is not being cleared by active usage,
* so emit a request to do so.
*/
u32 seqno = i915_add_request(dev,
NULL, NULL,
obj_priv->ring);
if (seqno == 0)
ret = -ENOMEM;
}

/* Update the active list for the hardware's current position.
* Otherwise this only updates on a delayed timer or when irqs
Expand Down

0 comments on commit 79d15b2

Please sign in to comment.