]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Create a USES_PPGTT macro
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 28 Jan 2014 07:07:00 +0000 (23:07 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Jan 2014 08:13:50 +0000 (09:13 +0100)
commit52422a5e27f321efdfd2cabf4c7fe138946c4250
treea45040395c1264fe620c7d687b7c77416d886a07
parenta529322f6630d12962ba582b41b16c2eae620817
drm/i915: Create a USES_PPGTT macro

There are cases where we want to know if there is a full, or aliased
PPGTT. Currently, in fact the only distinction we ever need to make is
when we're using full PPGTT.

This patch is simply to promote readability and clarify for the
confusing existing usage where "aliasing" meant aliasing and full.

v2: Remove USES_ALIASING_PPGTT since there are currently no cases where
we need to check if we're using aliasing, but not full PPGTT. (Daniel)

Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c