]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4a56a9814b1dfbd403825c148564db16eef21e5
tree5455f4c87ef8b66e390b587799922535778ff822
parentf31123e76cf409520cb7cf5c6742e5d03b70072d
drm/i915: Zap the GTT mapping when transitioning from untiled to tiled.

As of 0462074fdc25aef95a735b68579918fd3c7a220e, 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