drm/rockchip: vvop: adapt to the drm helper functions with full atomic state

Pass the full state to CRTC atomic enable/disable/flush and plane atomic
update.

Relevant commits:
commit 351f950db4 ("drm/atomic: Pass the full state to CRTC atomic enable/disable")
commit f6ebe9f9c9 ("drm/atomic: Pass the full state to CRTC atomic begin and flush")
commit 977697e20b ("drm/atomic: Pass the full state to planes atomic disable and update")

Change-Id: I3a523d02d80c0248c7065b408985737d5b83a3f8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2025-01-06 10:08:53 +08:00
parent 753101509a
commit 2c67eda0e2

View File

@@ -10,6 +10,8 @@
#include <drm/drm_gem.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_edid.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_probe_helper.h>
@@ -70,8 +72,7 @@ static const struct drm_plane_funcs vvop_plane_funcs = {
.atomic_destroy_state = drm_atomic_helper_plane_destroy_state,
};
static void vvop_plane_atomic_update(struct drm_plane *plane,
struct drm_plane_state *old_state)
static void vvop_plane_atomic_update(struct drm_plane *plane, struct drm_atomic_state *state)
{
}
@@ -398,14 +399,12 @@ static const struct drm_crtc_funcs vvop_crtc_funcs = {
.disable_vblank = vvop_disable_vblank,
};
static void vvop_crtc_atomic_enable(struct drm_crtc *crtc,
struct drm_crtc_state *old_state)
static void vvop_crtc_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *state)
{
drm_crtc_vblank_on(crtc);
}
static void vvop_crtc_atomic_disable(struct drm_crtc *crtc,
struct drm_crtc_state *old_state)
static void vvop_crtc_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *state)
{
unsigned long flags;
@@ -420,8 +419,7 @@ static void vvop_crtc_atomic_disable(struct drm_crtc *crtc,
}
static void vvop_crtc_atomic_flush(struct drm_crtc *crtc,
struct drm_crtc_state *old_crtc_state)
static void vvop_crtc_atomic_flush(struct drm_crtc *crtc, struct drm_atomic_state *state)
{
unsigned long flags;