OSDN Git Service

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)
commit778e23a9e05b7a59e9dbd3f9d9c9395f2f977fc7
tree50c8411b5252cd003b49bccf9cd5b3f6ef3278db
parent7d1d9aea3ee0e3aa285431c0fcfb05be8f6ec5f4
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: fc1584059d6c ("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