aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-18 17:17:07 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-18 22:36:56 +0100
commitd8923dcfa53d59886d432a3fc430e26cb92ce86a (patch)
tree0ce2d1d7a872e41fce5a11659052c4d79d554ad9 /drivers/gpu/drm/i915/i915_gem_gtt.h
parentdrm/i915: Fallback to using unmappable memory for scanout (diff)
downloadlinux-dev-d8923dcfa53d59886d432a3fc430e26cb92ce86a.tar.xz
linux-dev-d8923dcfa53d59886d432a3fc430e26cb92ce86a.zip
drm/i915: Track display alignment on VMA
When using the aliasing ppgtt and pageflipping with the shrinker/eviction active, we note that we often have to rebind the backbuffer before flipping onto the scanout because it has an invalid alignment. If we store the worst-case alignment required for a VMA, we can avoid having to rebind at critical junctures. 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/20160818161718.27187-28-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index 9248a0e0b286..a15cea73f729 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -184,6 +184,7 @@ struct i915_vma {
struct sg_table *pages;
void __iomem *iomap;
u64 size;
+ u64 display_alignment;
unsigned int flags;
/**