Re: [Intel-gfx] [PATCH 10/22] drm/i915: Record allocated vma size

2016-07-29 Thread Chris Wilson
On Fri, Jul 29, 2016 at 09:53:11AM +0300, Joonas Lahtinen wrote: > On ke, 2016-07-27 at 12:14 +0100, Chris Wilson wrote: > > -uint32_t > > -i915_gem_get_gtt_size(struct drm_device *dev, uint32_t size, int > > tiling_mode); > > -uint32_t > > -i915_gem_get_gtt_alignment(struct drm_device *dev,

Re: [Intel-gfx] [PATCH 10/22] drm/i915: Record allocated vma size

2016-07-29 Thread Joonas Lahtinen
On ke, 2016-07-27 at 12:14 +0100, Chris Wilson wrote: > -uint32_t > -i915_gem_get_gtt_size(struct drm_device *dev, uint32_t size, int > tiling_mode); > -uint32_t > -i915_gem_get_gtt_alignment(struct drm_device *dev, uint32_t size, > - int tiling_mode, bool fenced); >

[Intel-gfx] [PATCH 10/22] drm/i915: Record allocated vma size

2016-07-27 Thread Chris Wilson
Tracking the size of the VMA as allocated allows us to dramatically reduce the complexity of later functions (like inserting the VMA in to the drm_mm range manager). Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 10 ++--