summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-11-14 22:35:55 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2010-11-14 22:35:55 +0100
commit0ad69af98fa84271eb4d5e64b472a0d739d5fedc (patch)
tree49146c3aa4f66c3447ca62391eee9bfd62f9b57d
parent9219f0d14912b262c62c9ce7806f52f740c242b2 (diff)
drm/i915: fix set_tiling with map_and_fenceable disdictionfix-relaxed-tiling
i915_gem_set_tiling does only check fence alignment and not gtt size. This may result in the map_and_fenceable book-keeping being wrong. Chris Wilson is rewriting set_tiling to improve stalling behaviour, hence go with the easy bighammer fix of simply invalidating it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_gem_tiling.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index 0597a737ebad..16308c89ff3c 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -354,6 +354,7 @@ i915_gem_set_tiling(struct drm_device *dev, void *data,
goto err;
}
+ obj_priv->map_and_fenceable = 0;
obj_priv->tiling_mode = args->tiling_mode;
obj_priv->stride = args->stride;
}