Am 09.07.26 um 13:50 schrieb Maxime Ripard:
DRM_GEM_SHADOW_PLANE_FUNCS currently sets .reset to
drm_gem_reset_shadow_plane. Since
drm_gem_create_shadow_plane_state() now exists and only handles
pristine state allocation without conflating it with hardware or
suspend/resume reset, switch the macro to use .atomic_create_state
instead.

Signed-off-by: Maxime Ripard <[email protected]>

Reviewed-by: Thomas Zimmermann <[email protected]>

---
  include/drm/drm_gem_atomic_helper.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/drm/drm_gem_atomic_helper.h 
b/include/drm/drm_gem_atomic_helper.h
index 8a3bb27233db..da8a4fb442b4 100644
--- a/include/drm/drm_gem_atomic_helper.h
+++ b/include/drm/drm_gem_atomic_helper.h
@@ -108,11 +108,11 @@ void drm_gem_destroy_shadow_plane_state(struct drm_plane 
*plane,
   *
   * Drivers may use GEM BOs as shadow buffers over the framebuffer memory. This
   * macro initializes struct drm_plane_funcs to use the rsp helper functions.
   */
  #define DRM_GEM_SHADOW_PLANE_FUNCS \
-       .reset = drm_gem_reset_shadow_plane, \
+       .atomic_create_state = drm_gem_create_shadow_plane_state, \
        .atomic_duplicate_state = drm_gem_duplicate_shadow_plane_state, \
        .atomic_destroy_state = drm_gem_destroy_shadow_plane_state
int drm_gem_begin_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state);
  void drm_gem_end_shadow_fb_access(struct drm_plane *plane, struct 
drm_plane_state *plane_state);


--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, (HRB 36809, AG Nürnberg)


Reply via email to