drm/i915/selftests: Move mock_vma to the heap to reduce stack_frame
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Nov 2019 12:48:56 +0000 (12:48 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Nov 2019 15:09:14 +0000 (15:09 +0000)
commit34f5fe1243f072d9a10065a06d4b421f01636c09
tree2e49248b0f54b1683e5a5a7a6e8e14fb3976ffa0
parent4f88f8747fa43c97c3b3712d8d87295ea757cc51
drm/i915/selftests: Move mock_vma to the heap to reduce stack_frame

An i915_vma struct on the stack may push the frame over the limit, if
set conservatively, so move it to the heap.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191125124856.1761176-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c