diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2011-12-20 00:06:43 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 10:03:50 +0000 |
commit | e5e3b44c676be2dac97efd94e581e14a073e4ca7 (patch) | |
tree | 68101c072a982ef722a05a2434c92a2b0146a4f2 /drivers | |
parent | 81f6c7f873a69346762c9cd6347b908ba7035532 (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>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 e05d9979154..d9bf9d88ff4 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; } |