Re: [PATCH RFC v3 3/6] drm: fourcc: Add drm_format_plane_width_bytes()

2018-02-19 Thread Daniel Vetter
On Fri, Feb 09, 2018 at 05:35:53PM -0800, Hyun Kwon wrote: > drm_format_plane_width_bytes() calculates and returns the number of bytes > for given width of specified format. The calculation uses @cpp > in drm format info for byte-aligned formats. If the format isn't > byte-aligned, @cpp should 0,

[PATCH RFC v3 3/6] drm: fourcc: Add drm_format_plane_width_bytes()

2018-02-09 Thread Hyun Kwon
drm_format_plane_width_bytes() calculates and returns the number of bytes for given width of specified format. The calculation uses @cpp in drm format info for byte-aligned formats. If the format isn't byte-aligned, @cpp should 0, and the macro pixel information is used. This avoids bit level