summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2026-09-08 16:46:35 +0200
committerMaxime Ripard <mripard@kernel.org>2026-09-15 11:46:45 +0200
commitd3e410b0e2b2fb3f440edbb3f45b3efe06128bb5 (patch)
tree0672f47404b06b833bef7894fa89b283cf753a58
parent322ae66dab9ce9987e728ccda897367265095850 (diff)
downloadlinux-next-d3e410b0e2b2fb3f440edbb3f45b3efe06128bb5.tar.gz
linux-next-d3e410b0e2b2fb3f440edbb3f45b3efe06128bb5.zip
drm/gem-atomic-helper: Remove __drm_gem_reset_shadow_plane()
__drm_gem_reset_shadow_plane() is no longer used: all callers now go through __drm_gem_shadow_plane_state_init() or drm_gem_create_shadow_plane_state(). Remove it. Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20260908-drm-no-more-plane-reset-v4-4-a31b3fcfc989@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
-rw-r--r--drivers/gpu/drm/drm_gem_atomic_helper.c20
-rw-r--r--include/drm/drm_gem_atomic_helper.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/drivers/gpu/drm/drm_gem_atomic_helper.c b/drivers/gpu/drm/drm_gem_atomic_helper.c
index 3bb6bfd560d3..dd9efa7e3216 100644
--- a/drivers/gpu/drm/drm_gem_atomic_helper.c
+++ b/drivers/gpu/drm/drm_gem_atomic_helper.c
@@ -320,26 +320,6 @@ void drm_gem_destroy_shadow_plane_state(struct drm_plane *plane,
EXPORT_SYMBOL(drm_gem_destroy_shadow_plane_state);
/**
- * __drm_gem_reset_shadow_plane - resets a shadow-buffered plane
- * @plane: the plane
- * @shadow_plane_state: the shadow-buffered plane state
- *
- * This function resets state for shadow-buffered planes. Helpful
- * for drivers that subclass struct drm_shadow_plane_state.
- */
-void __drm_gem_reset_shadow_plane(struct drm_plane *plane,
- struct drm_shadow_plane_state *shadow_plane_state)
-{
- if (shadow_plane_state) {
- __drm_atomic_helper_plane_reset(plane, &shadow_plane_state->base);
- drm_format_conv_state_init(&shadow_plane_state->fmtcnv_state);
- } else {
- __drm_atomic_helper_plane_reset(plane, NULL);
- }
-}
-EXPORT_SYMBOL(__drm_gem_reset_shadow_plane);
-
-/**
* drm_gem_begin_shadow_fb_access - prepares shadow framebuffers for CPU access
* @plane: the plane
* @plane_state: the plane state of type struct drm_shadow_plane_state
diff --git a/include/drm/drm_gem_atomic_helper.h b/include/drm/drm_gem_atomic_helper.h
index 2deb0cd9ebbe..d41877f77b77 100644
--- a/include/drm/drm_gem_atomic_helper.h
+++ b/include/drm/drm_gem_atomic_helper.h
@@ -91,8 +91,6 @@ to_drm_shadow_plane_state(struct drm_plane_state *state)
void __drm_gem_duplicate_shadow_plane_state(struct drm_plane *plane,
struct drm_shadow_plane_state *new_shadow_plane_state);
void __drm_gem_destroy_shadow_plane_state(struct drm_shadow_plane_state *shadow_plane_state);
-void __drm_gem_reset_shadow_plane(struct drm_plane *plane,
- struct drm_shadow_plane_state *shadow_plane_state);
void __drm_gem_shadow_plane_state_init(struct drm_plane *plane,
struct drm_shadow_plane_state *shadow_plane_state);