aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2011-12-19 17:06:43 -0500
committerDave Airlie <airlied@redhat.com>2011-12-20 05:03:50 -0500
commite5e3b44c676be2dac97efd94e581e14a073e4ca7 (patch)
tree68101c072a982ef722a05a2434c92a2b0146a4f2
parent81f6c7f873a69346762c9cd6347b908ba7035532 (diff)
drm: plane: Clear plane.crtc and plane.fb after disable_plane()
These are the only indication to user space that the plane was disabled. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/drm_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index e05d99791544..d9bf9d88ff43 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -1684,6 +1684,8 @@ int drm_mode_setplane(struct drm_device *dev, void *data,
1684 /* No fb means shut it down */ 1684 /* No fb means shut it down */
1685 if (!plane_req->fb_id) { 1685 if (!plane_req->fb_id) {
1686 plane->funcs->disable_plane(plane); 1686 plane->funcs->disable_plane(plane);
1687 plane->crtc = NULL;
1688 plane->fb = NULL;
1687 goto out; 1689 goto out;
1688 } 1690 }
1689 1691