mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
drm/i915: fix transition to I915_TILING_NONE
Transitions to TILING_NONE skipped the call to unbind the object, which left the fence register set and caused future CPU access through the GTT to access the object in tiled mode. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
07f4f8bf43
commit
5b0bdd6f72
1 changed files with 0 additions and 1 deletions
|
@ -283,7 +283,6 @@ i915_gem_set_tiling(struct drm_device *dev, void *data,
|
||||||
mutex_lock(&dev->struct_mutex);
|
mutex_lock(&dev->struct_mutex);
|
||||||
|
|
||||||
if (args->tiling_mode == I915_TILING_NONE) {
|
if (args->tiling_mode == I915_TILING_NONE) {
|
||||||
obj_priv->tiling_mode = I915_TILING_NONE;
|
|
||||||
args->swizzle_mode = I915_BIT_6_SWIZZLE_NONE;
|
args->swizzle_mode = I915_BIT_6_SWIZZLE_NONE;
|
||||||
} else {
|
} else {
|
||||||
if (args->tiling_mode == I915_TILING_X)
|
if (args->tiling_mode == I915_TILING_X)
|
||||||
|
|
Loading…
Reference in a new issue