diff options
author | Matt Roper <matthew.d.roper@intel.com> | 2014-04-01 15:22:30 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-04-01 19:13:07 -0400 |
commit | e27dde3e1c5117149c50b89d688528e279756113 (patch) | |
tree | f8af6af4b70125256c657317b6192a7183ec8157 /drivers/gpu/drm/drm_fb_helper.c | |
parent | c32fc9c803f8ed90a7548810de48ca33a3020168 (diff) | |
download | linux-e27dde3e1c5117149c50b89d688528e279756113.tar.gz linux-e27dde3e1c5117149c50b89d688528e279756113.tar.bz2 linux-e27dde3e1c5117149c50b89d688528e279756113.zip |
drm: Add support for multiple plane types (v2)
The DRM core currently only tracks "overlay"-style planes. Start
refactoring the plane handling to allow other plane types (primary and
cursor) to also be placed on the DRM plane list.
v2: Add drm_for_each_legacy_plane() iterator to smooth transition
of drivers with plane loops.
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 16f271e21b9c..f30bf7b723d5 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -291,7 +291,8 @@ bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper) drm_warn_on_modeset_not_all_locked(dev); list_for_each_entry(plane, &dev->mode_config.plane_list, head) - drm_plane_force_disable(plane); + if (plane->type != DRM_PLANE_TYPE_PRIMARY) + drm_plane_force_disable(plane); for (i = 0; i < fb_helper->crtc_count; i++) { struct drm_mode_set *mode_set = &fb_helper->crtc_info[i].mode_set; |