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]> --- 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); -- 2.54.0
