drm/i915: Only perform set-to-gtt domain for objects bound to the global gtt
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Aug 2014 16:37:22 +0000 (17:37 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 09:36:12 +0000 (11:36 +0200)
commitdc8cd1e790081a31ba4d86c3c0812c348eeec7fc
treef4d19d9b8118efbda0dcb21356fe91192abc58f9
parentd6699dd3a7f696a80a5f8e5bb6ecf6ff6dd7c998
drm/i915: Only perform set-to-gtt domain for objects bound to the global gtt

If an object is not bound into the global GTT, then it cannot be
accessed via the GTT. This restores the original code that was muddled
by ppGTT. In the process, we remove a WARN that had long outlived its
usefulness and was simply being coded around instead.

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