]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/gpu/drm/drm_atomic_helper.c
drm: Consolidate plane arrays in drm_atomic_state
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / drm_atomic_helper.c
index b4e2e988132f3afd456b2c8d548f3da7f5fe3216..c2ef42c8a94746aced72e5812eb35cb43143577f 100644 (file)
@@ -1584,7 +1584,7 @@ void drm_atomic_helper_swap_state(struct drm_device *dev,
 
        for_each_plane_in_state(state, plane, plane_state, i) {
                plane->state->state = state;
-               swap(state->plane_states[i], plane->state);
+               swap(state->planes[i].state, plane->state);
                plane->state->state = NULL;
        }
 }