Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307290
b: refs/heads/master
c: 1869b62
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed May 3, 2012
1 parent 646decc commit 435f4f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 5d82e3e6427d407e5e4713a2f73210b4e7801ad3
refs/heads/master: 1869b620d27a0e353bd6558015713fad2d0cc09b
8 changes: 6 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_gem_tiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,15 @@ i915_gem_set_tiling(struct drm_device *dev, void *data,
/* We need to rebind the object if its current allocation
* no longer meets the alignment restrictions for its new
* tiling mode. Otherwise we can just leave it alone, but
* need to ensure that any fence register is cleared.
* need to ensure that any fence register is updated before
* the next fenced (either through the GTT or by the BLT unit
* on older GPUs) access.
*
* After updating the tiling parameters, we then flag whether
* we need to update an associated fence register. Note this
* has to also include the unfenced register the GPU uses
* whilst executing a fenced command for an untiled object.
*/
i915_gem_release_mmap(obj);

obj->map_and_fenceable =
obj->gtt_space == NULL ||
Expand All @@ -385,6 +386,9 @@ i915_gem_set_tiling(struct drm_device *dev, void *data,

obj->tiling_mode = args->tiling_mode;
obj->stride = args->stride;

/* Force the fence to be reacquired for GTT access */
i915_gem_release_mmap(obj);
}
}
/* we have to maintain this existing ABI... */
Expand Down

0 comments on commit 435f4f9

Please sign in to comment.