]> 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)
commitb669874014dd6820ba027bd978de6b7c603cd676
tree50c8411b5252cd003b49bccf9cd5b3f6ef3278db
parent2d84949321ff95a971d8dd7c27ece0524c4359fc
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: f6b4a744532d ("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