Re: [Intel-gfx] [PATCH 25/38] drm: Add reference counting to drm_atomic_state

2016-09-21 Thread Sean Paul
On Tue, Sep 20, 2016 at 11:29 AM, Chris Wilson wrote: > drm_atomic_state has a complicated single owner model that tracks the > single reference from allocation through to destruction on another > thread - or perhaps on a local error path. We can simplify this tracking > by using reference countin

[Intel-gfx] [PATCH 25/38] drm: Add reference counting to drm_atomic_state

2016-09-20 Thread Chris Wilson
drm_atomic_state has a complicated single owner model that tracks the single reference from allocation through to destruction on another thread - or perhaps on a local error path. We can simplify this tracking by using reference counting (at a cost of a few more atomics). This is even more benefici