]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/gpu/drm/tegra/drm.c
drm/atomic-helper: Add NO_DISABLE_AFTER_MODESET flag support for plane commit
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / tegra / drm.c
index b59c3bf0df4443420a236f032d8af0c6345482d6..4b9f1c79cd7b01f4ba70e52743f7592d1ce014dd 100644 (file)
@@ -56,8 +56,9 @@ static void tegra_atomic_complete(struct tegra_drm *tegra,
         */
 
        drm_atomic_helper_commit_modeset_disables(drm, state);
-       drm_atomic_helper_commit_planes(drm, state, false);
        drm_atomic_helper_commit_modeset_enables(drm, state);
+       drm_atomic_helper_commit_planes(drm, state,
+                                       DRM_PLANE_COMMIT_ACTIVE_ONLY);
 
        drm_atomic_helper_wait_for_vblanks(drm, state);
 
@@ -93,7 +94,7 @@ static int tegra_atomic_commit(struct drm_device *drm,
         * the software side now.
         */
 
-       drm_atomic_helper_swap_state(drm, state);
+       drm_atomic_helper_swap_state(state, true);
 
        if (nonblock)
                tegra_atomic_schedule(tegra, state);