commit | c4e6488120e9ef1ceced8fb0caf134c5242ddaf4 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Tue Aug 27 17:17:26 2019 +0100 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Wed Aug 28 08:32:02 2019 +0100 |
tree | 96949f995c37aaeb6f7a48fe0297cb29c1af2ff6 | |
parent | f2085c8e950d536c7982182b0c9c015804011dd2 [diff] |
drm/i915/selftests: Try to recycle context allocations igt_ctx_exec allocates a new context for each iteration, keeping them all allocated until the end. Instead, release the local ctx reference at the end of each iteration, allowing ourselves to reap those if under mempressure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190827161726.3640-2-chris@chris-wilson.co.uk