Re: [PATCH v2 1/8] drm/dumb-buffers: Fix drm_mode_create_dumb() for bpp < 8

2023-08-31 Thread Geert Uytterhoeven
Hi Thomas, On Thu, Aug 31, 2023 at 9:40 AM Thomas Zimmermann wrote: > Am 24.08.23 um 17:08 schrieb Geert Uytterhoeven: > > drm_mode_create_dumb() calculates the number of characters per pixel > > from the number of bits per pixel by rounding up, which is not correct > > as the actual value of

Re: [PATCH v2 1/8] drm/dumb-buffers: Fix drm_mode_create_dumb() for bpp < 8

2023-08-31 Thread Thomas Zimmermann
Hi Am 24.08.23 um 17:08 schrieb Geert Uytterhoeven: drm_mode_create_dumb() calculates the number of characters per pixel from the number of bits per pixel by rounding up, which is not correct as the actual value of cpp may be non-integer. While we do not need to care here about complex formats

[PATCH v2 1/8] drm/dumb-buffers: Fix drm_mode_create_dumb() for bpp < 8

2023-08-24 Thread Geert Uytterhoeven
drm_mode_create_dumb() calculates the number of characters per pixel from the number of bits per pixel by rounding up, which is not correct as the actual value of cpp may be non-integer. While we do not need to care here about complex formats like YUV, bpp < 8 is a valid use case. - The