diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-12-10 18:59:24 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-01-20 16:17:08 -0500 |
commit | 6c2a75325c800de286166c693e0cd33c3a1c5ec8 (patch) | |
tree | ee9fd562cb9f11e944b2146e59b0f3561492400b /ipc/mqueue.c | |
parent | 4ccf097f1935321f03ad36218588a9e446006b6a (diff) |
drm: refcounting for sprite framebuffers
Now plane->fb holds a reference onto it's framebuffer. Nothing too
fancy going on here:
- Extract __drm_framebuffer_unreference to be called when we know
we're not dropping the last reference, e.g. useful in the fb cleanup
code.
- Reduce the locked sections in the set_plane ioctl to only protect
plane->fb/plane->crtc and the driver callback (i.e. hw state).
Everything either doesn't disappear (crtc, plane) or is refcounted
(fb), and all the data we check is invariant over the respective
object's lifetimes.
Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'ipc/mqueue.c')
0 files changed, 0 insertions, 0 deletions