From: Ville Syrj?l? <ville.syrj...@linux.intel.com>

These are the only indication to user space that the plane was disabled.

Signed-off-by: Ville Syrj?l? <ville.syrjala at linux.intel.com>
Acked-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/drm_crtc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index e05d997..d9bf9d8 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,
        /* No fb means shut it down */
        if (!plane_req->fb_id) {
                plane->funcs->disable_plane(plane);
+               plane->crtc = NULL;
+               plane->fb = NULL;
                goto out;
        }

-- 
1.7.3.4

Reply via email to