drm/i915: Only mark as map-and-fenceable when bound into the GGTT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Oct 2014 13:53:52 +0000 (13:53 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:00 +0000 (18:42 +0100)
commitef79e17ccef32599f3cec3842f81d70117181291
treead5235159d6cde022160a2e09e318c8a7608778c
parent9362c7c576d39ebca81f82e931ab109c065d42be
drm/i915: Only mark as map-and-fenceable when bound into the GGTT

We use the obj->map_and_fenceable hint for when we already have a
valid mapping of this object in the aperture. This hint can only apply
to the GGTT and not to the aliasing-ppGTT. One user of the hint is
execbuffer relocation, which began to fail when it tried to follow the
hint and perform the relocate through the non-existent GGTT mapping.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85671
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c