drm/i915: Zap the GTT mapping when transitioning from untiled to tiled.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jul 2009 20:02:26 +0000 (13:02 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 10 Jul 2009 21:10:58 +0000 (14:10 -0700)
commitd05ca301997c94c2ef3c112b15319d13fa8cddab
tree5455f4c87ef8b66e390b587799922535778ff822
parent901782b21ecb2af4dde1598b3142bf0e80b20853
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_tiling.c