[PATCH 27/37] drm: refcounting for sprite framebuffers

2012-12-12 Thread Daniel Vetter
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 protec

[PATCH 27/37] drm: refcounting for sprite framebuffers

2012-12-12 Thread Daniel Vetter
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 protec