|
10 | 10 | #include <drm/drm_framebuffer.h> |
11 | 11 | #include <drm/drm_plane.h> |
12 | 12 | #include <drm/drm_plane_helper.h> |
| 13 | +#include <drm/drm_print.h> |
13 | 14 |
|
14 | 15 | #include "vs_plane.h" |
15 | 16 |
|
@@ -150,7 +151,7 @@ static int vs_primary_plane_atomic_check(struct drm_plane *plane, struct drm_ato |
150 | 151 | return -EINVAL; |
151 | 152 | } |
152 | 153 |
|
153 | | - crtc_state = drm_atomic_get_existing_crtc_state(new_state->state, new_state->crtc); |
| 154 | + crtc_state = drm_atomic_get_new_crtc_state(new_state->state, new_state->crtc); |
154 | 155 | return drm_atomic_helper_check_plane_state(new_state, crtc_state, |
155 | 156 | primary_info->min_scale, |
156 | 157 | primary_info->max_scale, |
@@ -190,7 +191,7 @@ static int vs_overlay_plane_atomic_check(struct drm_plane *plane, struct drm_ato |
190 | 191 | return -EINVAL; |
191 | 192 | } |
192 | 193 |
|
193 | | - crtc_state = drm_atomic_get_existing_crtc_state(new_state->state, new_state->crtc); |
| 194 | + crtc_state = drm_atomic_get_new_crtc_state(new_state->state, new_state->crtc); |
194 | 195 | return drm_atomic_helper_check_plane_state(new_state, crtc_state, |
195 | 196 | overlay_info->min_scale, |
196 | 197 | overlay_info->max_scale, |
@@ -225,7 +226,7 @@ static int vs_cursor_plane_atomic_check(struct drm_plane *plane, struct drm_atom |
225 | 226 | drm_err_once(plane->dev, "buffer size may not support on plane%d.\n", |
226 | 227 | to_vs_plane(plane)->id); |
227 | 228 |
|
228 | | - crtc_state = drm_atomic_get_existing_crtc_state(new_state->state, new_state->crtc); |
| 229 | + crtc_state = drm_atomic_get_new_crtc_state(new_state->state, new_state->crtc); |
229 | 230 | return drm_atomic_helper_check_plane_state(new_state, crtc_state, |
230 | 231 | DRM_PLANE_NO_SCALING, |
231 | 232 | DRM_PLANE_NO_SCALING, |
|
0 commit comments