]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Implement local atomic_state_free callback
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Dec 2016 14:29:39 +0000 (14:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Dec 2016 20:49:17 +0000 (20:49 +0000)
commit5ab66669968a8d0ae38a8c8fede0f06ce9cb3391
tree50c8411b5252cd003b49bccf9cd5b3f6ef3278db
parent7b14bb5a0342bec60644d242c1c0259d4937508e
drm/i915: Implement local atomic_state_free callback

As we use debugobjects to track the lifetime of fences within our atomic
state, we ideally want to mark those objects as freed along with their
containers. This merits us hookin into config->funcs->atomic_state_free
for this purpose.

This allows us to enable debugobjects for sw-fences without triggering
known issues.

Fixes: 9a2b3626949a ("drm/i915: Integrate i915_sw_fence with debugobjects")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161205142941.21965-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c