Commit e5d2435b authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Destroy partial tiling vma after use

As we keep VMA around until the object is destroyed, when testing
partial tiling we instantiate many, many VMA (as the object is huge
allowing for many different partial regions). We test elsewhere our
handling of populating large objects with a full set of VMA and checking
we can retrieve them afterwards, but in this test we incur the cost of
flushing all VMA after every GTT write, dramatically slowing down the
test.

References: https://bugs.freedesktop.org/show_bug.cgi?id=107130Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706065332.15214-2-chris@chris-wilson.co.uk
parent 1eca65d9
...@@ -288,6 +288,8 @@ static int check_partial_mapping(struct drm_i915_gem_object *obj, ...@@ -288,6 +288,8 @@ static int check_partial_mapping(struct drm_i915_gem_object *obj,
kunmap(p); kunmap(p);
if (err) if (err)
return err; return err;
i915_vma_destroy(vma);
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment