Skip to content

Commit 1df9975

Browse files
sandiecao-dcDC-DeepComputing
authored andcommitted
drm: verisilicon: Fix compile error
Signed-off-by: sandiecao <[email protected]>
1 parent 4c14dfb commit 1df9975

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

drivers/gpu/drm/verisilicon/vs_crtc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <drm/drm_crtc.h>
99
#include <drm/drm_gem_atomic_helper.h>
1010
#include <drm/drm_vblank.h>
11+
#include <drm/drm_print.h>
1112

1213
#include "vs_crtc.h"
1314

drivers/gpu/drm/verisilicon/vs_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <drm/drm_vblank.h>
2424
#include <drm/drm_blend.h>
2525
#include <drm/drm_fbdev_dma.h>
26+
#include <drm/drm_print.h>
2627

2728
#include "vs_drv.h"
2829
#include "vs_crtc.h"

drivers/gpu/drm/verisilicon/vs_plane.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <drm/drm_framebuffer.h>
1111
#include <drm/drm_plane.h>
1212
#include <drm/drm_plane_helper.h>
13+
#include <drm/drm_print.h>
1314

1415
#include "vs_plane.h"
1516

@@ -150,7 +151,7 @@ static int vs_primary_plane_atomic_check(struct drm_plane *plane, struct drm_ato
150151
return -EINVAL;
151152
}
152153

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);
154155
return drm_atomic_helper_check_plane_state(new_state, crtc_state,
155156
primary_info->min_scale,
156157
primary_info->max_scale,
@@ -190,7 +191,7 @@ static int vs_overlay_plane_atomic_check(struct drm_plane *plane, struct drm_ato
190191
return -EINVAL;
191192
}
192193

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);
194195
return drm_atomic_helper_check_plane_state(new_state, crtc_state,
195196
overlay_info->min_scale,
196197
overlay_info->max_scale,
@@ -225,7 +226,7 @@ static int vs_cursor_plane_atomic_check(struct drm_plane *plane, struct drm_atom
225226
drm_err_once(plane->dev, "buffer size may not support on plane%d.\n",
226227
to_vs_plane(plane)->id);
227228

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);
229230
return drm_atomic_helper_check_plane_state(new_state, crtc_state,
230231
DRM_PLANE_NO_SCALING,
231232
DRM_PLANE_NO_SCALING,

0 commit comments

Comments
 (0)