Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307132
b: refs/heads/master
c: f841319
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Apr 12, 2012
1 parent 72c5f77 commit 3c5e935
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 211c568bc6a1ebd51e35724f6d733e76717ce368
refs/heads/master: f84131905b9b3b02b1c5061c0720e503c8d22778
8 changes: 5 additions & 3 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3068,9 +3068,11 @@ i915_gem_object_set_to_cpu_domain(struct drm_i915_gem_object *obj, bool write)
if (ret)
return ret;

ret = i915_gem_object_wait_rendering(obj);
if (ret)
return ret;
if (write || obj->pending_gpu_write) {
ret = i915_gem_object_wait_rendering(obj);
if (ret)
return ret;
}

i915_gem_object_flush_gtt_write_domain(obj);

Expand Down

0 comments on commit 3c5e935

Please sign in to comment.