OSDN Git Service

drm/i915: Track display alignment on VMA
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:07 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:56 +0000 (22:36 +0100)
commitd8923dcfa53d59886d432a3fc430e26cb92ce86a
tree0ce2d1d7a872e41fce5a11659052c4d79d554ad9
parent2efb813d5388e18255c54afac77bd91acd586908
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
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_gtt.h