summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-09 17:15:44 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-09 21:23:18 +0100
commit50a4c4a94d24fe13167e3ab1dc1486623369c31a (patch)
tree6499c1453002d9b61dd5ab9d9d33ab2cb648111f /include/drm
parent7e3b8737e719c4de7dd79b096b80ece444b2f0ba (diff)
downloadop-kernel-dev-50a4c4a94d24fe13167e3ab1dc1486623369c31a.zip
op-kernel-dev-50a4c4a94d24fe13167e3ab1dc1486623369c31a.tar.gz
agp/intel-gtt: export the scratch page dma address
To implement a PPGTT for drm/i915 that fully aliases the GTT, we also need to properly alias the scratch page. Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Tested-by: Chris Wilson <chris@chris-wilson.co.uk> Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/intel-gtt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h
index b174620..6d4c77a 100644
--- a/include/drm/intel-gtt.h
+++ b/include/drm/intel-gtt.h
@@ -15,6 +15,8 @@ const struct intel_gtt {
unsigned int needs_dmar : 1;
/* Whether we idle the gpu before mapping/unmapping */
unsigned int do_idle_maps : 1;
+ /* Share the scratch page dma with ppgtts. */
+ dma_addr_t scratch_page_dma;
} *intel_gtt_get(void);
void intel_gtt_chipset_flush(void);
OpenPOWER on IntegriCloud