Re: [Intel-gfx] [PATCH v2 37/38] drm/i915: Add mock exercise for i915_gem_gtt_insert

2017-01-25 Thread Joonas Lahtinen
On to, 2017-01-19 at 11:41 +, Chris Wilson wrote: > i915_gem_gtt_insert should allocate from the available free space in the > GTT, evicting as necessary to create space. > > Signed-off-by: Chris Wilson > + list_add(&obj->batch_pool_link, &objects); Still dislike the obscurity

[Intel-gfx] [PATCH v2 37/38] drm/i915: Add mock exercise for i915_gem_gtt_insert

2017-01-19 Thread Chris Wilson
i915_gem_gtt_insert should allocate from the available free space in the GTT, evicting as necessary to create space. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 208 ++ 1 file changed, 208 insertions(+) diff --git a/drivers/gpu/drm/i91