Re: [PATCH v2 RFC 07/10] drm/gem-fb-helper: Use actual bpp for size calculations

2022-03-09 Thread Javier Martinez Canillas
On 3/7/22 21:52, Geert Uytterhoeven wrote: > The AFBC helpers derive the number of bits per pixel from the deprecated > drm_format_info.cpp[] field, which does not take into account block > sizes. > > Fix this by using the actual number of bits per pixel instead. > > Signed-off-by: Geert Uytterho

[PATCH v2 RFC 07/10] drm/gem-fb-helper: Use actual bpp for size calculations

2022-03-07 Thread Geert Uytterhoeven
The AFBC helpers derive the number of bits per pixel from the deprecated drm_format_info.cpp[] field, which does not take into account block sizes. Fix this by using the actual number of bits per pixel instead. Signed-off-by: Geert Uytterhoeven --- RFC, as this code path was untested. v2: - R