diff options
author | Eric Anholt <eric@anholt.net> | 2009-07-10 13:02:26 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-07-10 14:10:58 -0700 |
commit | d05ca301997c94c2ef3c112b15319d13fa8cddab (patch) | |
tree | 5455f4c87ef8b66e390b587799922535778ff822 /drivers/gpu/drm/i915/i915_gem.c | |
parent | 901782b21ecb2af4dde1598b3142bf0e80b20853 (diff) | |
download | blackbird-op-linux-d05ca301997c94c2ef3c112b15319d13fa8cddab.tar.gz blackbird-op-linux-d05ca301997c94c2ef3c112b15319d13fa8cddab.zip |
drm/i915: Zap the GTT mapping when transitioning from untiled to tiled.
As of 52dc7d32b88156248167864f77a9026abe27b432, we could leave an old
linear GTT mapping in place, so that apps trying to GTT-mapped write in
tiled data wouldn't get the fence added, and garbage would get displayed.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 08d8e5d85955..5bf420378b6d 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -1266,7 +1266,7 @@ out_free_list: * mapping will then trigger a page fault on the next user access, allowing * fixup by i915_gem_fault(). */ -static void +void i915_gem_release_mmap(struct drm_gem_object *obj) { struct drm_device *dev = obj->dev; |