summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
authorMatthew Auld2018-07-30 14:05:44 +0200
committerChris Wilson2018-07-30 16:21:48 +0200
commit3d94361aa13a0135a1b67d27a80a5158c93d6505 (patch)
tree1be0885cc6f1d6516dc9e3e9d6a45550400b481a /drivers/gpu/drm/i915/i915_gem_gtt.h
parentdrm/i915/selftests: Replace opencoded clflush with drm_clflush_virt_range (diff)
downloadkernel-qcow2-linux-3d94361aa13a0135a1b67d27a80a5158c93d6505.tar.gz
kernel-qcow2-linux-3d94361aa13a0135a1b67d27a80a5158c93d6505.tar.xz
kernel-qcow2-linux-3d94361aa13a0135a1b67d27a80a5158c93d6505.zip
drm/i915/gtt: remove px_page
Entries will either be pointing to scratch or real PD, making the px_page(pd) check pointless. Also since there are no other users of px_page, just remove it. Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Michel Thierry <michel.thierry@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180730120544.20784-1-matthew.auld@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index ce945bf78a89..dd161c187a68 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -229,7 +229,6 @@ struct i915_page_dma {
};
#define px_base(px) (&(px)->base)
-#define px_page(px) (px_base(px)->page)
#define px_dma(px) (px_base(px)->daddr)
struct i915_page_table {