drm/i915: Bail if we attempt to allocate pages for a purged object
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Jan 2013 10:53:09 +0000 (10:53 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Jan 2013 21:07:59 +0000 (22:07 +0100)
commit43e28f092b2fa4ebc46bdc210134a80610815785
tree1dceb3f656f7c10519d74419f62b849d1bcbf791
parentdd624afd533bdc87b8c10835515a0c8b2b9868b1
drm/i915: Bail if we attempt to allocate pages for a purged object

Move the existing checking inside bind_to_gtt() to the more appropriate
layer in order to prevent recreation of the pages after they have been
explicitly truncated.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c