]> git.karo-electronics.de Git - linux-beck.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)
commitc5dc5cecf82c2269ae94f380c41031787e25a2a2
treea45040395c1264fe620c7d687b7c77416d886a07
parent3adee7a7976012a20f1d3b5a529a3c105e29fef1
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