Commit 9b723240 authored by Thomas Zimmermann's avatar Thomas Zimmermann
Browse files

drm/fb-helper: Remove test for fb_dirty callback from deferred-I/O helper



The helper for processing deferred I/O on pages has no dependency on
the fb_dirty damge-handling callback; so remove the test. In practice,
deferred I/O is only used with damage handling and the damage worker
already guarantees the presence of the fb_dirty callback.

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20221115115819.23088-4-tzimmermann@suse.de
parent 17d64f15
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -656,10 +656,7 @@ void drm_fb_helper_deferred_io(struct fb_info *info, struct list_head *pagerefli
		min_off = min(min_off, start);
		max_off = max(max_off, end);
	}
	if (min_off >= max_off)
		return;

	if (helper->funcs->fb_dirty) {
	/*
	 * As we can only track pages, we might reach beyond the end
	 * of the screen and account for non-existing scanlines. Hence,
@@ -667,6 +664,7 @@ void drm_fb_helper_deferred_io(struct fb_info *info, struct list_head *pagerefli
	 */
	max_off = min(max_off, info->screen_size);

	if (min_off < max_off) {
		drm_fb_helper_memory_range_to_clip(info, min_off, max_off - min_off, &damage_area);
		drm_fb_helper_damage(helper, damage_area.x1, damage_area.y1,
				     drm_rect_width(&damage_area),