[PATCH 1/2] drm: Simplify fb refcounting rules around ->update_plane

2014-04-23 Thread Daniel Vetter
On Wed, Apr 23, 2014 at 4:45 PM, Matt Roper wrote: >> @@ -177,22 +176,7 @@ int drm_primary_helper_update(struct drm_plane *plane, >> struct drm_crtc *crtc, >> set.connectors = connector_list; >> set.num_connectors = num_connectors; >> >> - /* >> - * set_config() adjusts crtc

[PATCH 1/2] drm: Simplify fb refcounting rules around ->update_plane

2014-04-23 Thread Daniel Vetter
The introduction of primary planes has apparently caused a bit of fb refcounting fun for people. That makes it a good time to clean up the arcane rules and slight differences between ->update_plane and ->set_config. The new rules are: - The core holds a reference for both the new and the old fb (i

[PATCH 1/2] drm: Simplify fb refcounting rules around ->update_plane

2014-04-23 Thread Matt Roper
On Wed, Apr 23, 2014 at 10:30:04AM +0200, Daniel Vetter wrote: > The introduction of primary planes has apparently caused a bit of fb > refcounting fun for people. That makes it a good time to clean up the > arcane rules and slight differences between ->update_plane and > ->set_config. The new rule