drm/i915: clean up PPGTT checking logic
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 5 Aug 2014 14:51:18 +0000 (07:51 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 Aug 2014 15:43:58 +0000 (17:43 +0200)
commit692ef70c016b5035ad1942ccc2bc4040aa290044
treeaa62c873455a25007d1b2cfb9756afbe90039c4e
parentefd814b73cfcf4ed1cb561561d8df6daccb3ceb6
drm/i915: clean up PPGTT checking logic

sanitize_enable_ppgtt is the function that checks all the conditions,
honoring a forced ppgtt status or doing auto-detect as necessary.  Just
make sure it returns the right value in all cases and use that in the
macros instead of the confusing intel_enable_ppgtt() function.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[danvet: Don't reenable full ppgtt through the backdoor.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h