diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-08 08:19:15 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-09 02:43:28 -0400 |
commit | d3a46183db97536a53df5de6b556bd61197842b2 (patch) | |
tree | ff1ab5e861a93259c552b3d2b49dca89036b8fe9 /include/drm | |
parent | c39032a8925a3f2802c7860e1080b7080350cc03 (diff) |
drm: Replace fb_helper->atomic with mode_config->atomic_commit
Drivers transitioning to atomic might not yet want to enable full
DRIVER_ATOMIC support when it's not entirely working. But using atomic
internally makes a lot more sense earlier.
Instead of spreading such flags to more places I figured it's simpler
to just check for mode_config->funcs->atomic_commit, and use atomic
paths if that is set. For the only driver currently transitioning
(i915) this does the right thing.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465388359-8070-23-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_fb_helper.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index 5b4aa35026a3..db8d4780eaa2 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -212,17 +212,6 @@ struct drm_fb_helper { | |||
212 | * needs to be reprobe when fbdev is in control again. | 212 | * needs to be reprobe when fbdev is in control again. |
213 | */ | 213 | */ |
214 | bool delayed_hotplug; | 214 | bool delayed_hotplug; |
215 | |||
216 | /** | ||
217 | * @atomic: | ||
218 | * | ||
219 | * Use atomic updates for restore_fbdev_mode(), etc. This defaults to | ||
220 | * true if driver has DRIVER_ATOMIC feature flag, but drivers can | ||
221 | * override it to true after drm_fb_helper_init() if they support atomic | ||
222 | * modeset but do not yet advertise DRIVER_ATOMIC (note that fb-helper | ||
223 | * does not require ASYNC commits). | ||
224 | */ | ||
225 | bool atomic; | ||
226 | }; | 215 | }; |
227 | 216 | ||
228 | #ifdef CONFIG_DRM_FBDEV_EMULATION | 217 | #ifdef CONFIG_DRM_FBDEV_EMULATION |