mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/vkms: Convert vkms_crtc_atomic_check() to use new plane state
The vkms_crtc_atomic_check() function calls the deprecated drm_atomic_get_existing_plane_state() helper for its internal mode checking logic. During atomic_check, the existing state is the new state and drm_atomic_get_existing_plane_state() can thus be replaced by drm_atomic_get_new_plane_state(). Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://lore.kernel.org/r/20250930-drm-no-more-existing-state-v5-6-eeb9e1287907@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
This commit is contained in:
@@ -127,7 +127,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc,
|
||||
return ret;
|
||||
|
||||
drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) {
|
||||
plane_state = drm_atomic_get_existing_plane_state(crtc_state->state, plane);
|
||||
plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane);
|
||||
WARN_ON(!plane_state);
|
||||
|
||||
if (!plane_state->visible)
|
||||
@@ -143,7 +143,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc,
|
||||
|
||||
i = 0;
|
||||
drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) {
|
||||
plane_state = drm_atomic_get_existing_plane_state(crtc_state->state, plane);
|
||||
plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane);
|
||||
|
||||
if (!plane_state->visible)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user