summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-15 10:48:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-15 11:00:54 +0100
commit247177ddd5170d81a0ffb6f4ec2f32c504a4a33d (patch)
treea0807f2437c21cc7bb8197740c0ffaf4990387b4 /drivers/gpu/drm/i915/i915_gem_gtt.h
parent95b2ab56a53dc926eb6949ebd40a4708e32eb4f0 (diff)
downloadop-kernel-dev-247177ddd5170d81a0ffb6f4ec2f32c504a4a33d.zip
op-kernel-dev-247177ddd5170d81a0ffb6f4ec2f32c504a4a33d.tar.gz
drm/i915: Always set the vma->pages
Previously, we would only set the vma->pages pointer for GGTT entries. However, if we always set it, we can use it to prettify some code that may want to access the backing store associated with the VMA (as assigned to the VMA). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1471254551-25805-8-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index 56e64a5..b580e8a 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -155,8 +155,6 @@ struct i915_ggtt_view {
} partial;
struct intel_rotation_info rotated;
} params;
-
- struct sg_table *pages;
};
extern const struct i915_ggtt_view i915_ggtt_view_normal;
@@ -176,6 +174,7 @@ struct i915_vma {
struct drm_mm_node node;
struct drm_i915_gem_object *obj;
struct i915_address_space *vm;
+ struct sg_table *pages;
void __iomem *iomap;
u64 size;
OpenPOWER on IntegriCloud