[PATCH] drm: Replace drm_framebuffer plane size functions with its equivalents

André Almeida andrealmeid at igalia.com
Wed Jul 12 23:30:05 UTC 2023


Hi Carlos,

Em 27/06/2023 15:22, Carlos Eduardo Gallo Filho escreveu:
[...]
> 
> So, replace each drm_framebuffer_plane_{width,height} and
> fb_plane_{width,height} call to drm_format_info_plane_{width,height}
> and remove them.
> 

I see that with this replace, there's a small code change from

	return DIV_ROUND_UP(width, format->hsub);

to
	return width / info->hsub;

is there any case that the replaced function will give different results?


More information about the dri-devel mailing list