]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add a test that we terminate the trimmed sgtable as expected
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Dec 2016 12:43:46 +0000 (12:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Dec 2016 12:31:52 +0000 (12:31 +0000)
commitb99d26de92259c07a9f92822415931862ddcf8b2
treea83ac3e9d491988014fd223992ba078cb93eba8c
parente7f952528327d4f2be565762b2fd02c71ae387e6
drm/i915: Add a test that we terminate the trimmed sgtable as expected

In commit a61065a63227 ("drm/i915: Trim the object sg table"), we expect
to copy exactly orig_st->nents across and allocate the table thusly.
The copy loop should therefore end with the new_sg being NULL.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161219124346.550-2-chris@chris-wilson.co.uk
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem.c