]> git.baikalelectronics.ru Git - kernel.git/commit
drm/simpledrm: Compute framebuffer stride if not set
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 1 Aug 2022 13:50:27 +0000 (15:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Aug 2022 12:14:03 +0000 (14:14 +0200)
commit871a533dd24f59b4dde2d357b8b8e8889f661b56
tree84fc0a383a20f5dd12cfee6cbbdbaa50a9293192
parent501bc172eaaa02129f9fe331897a32196ad5b7b0
drm/simpledrm: Compute framebuffer stride if not set

Compute the framebuffer's scanline stride length if not given by
the simplefb data.

v3:
* get pixel size from drm_format_info_bpp() (Geert, Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220801135028.30647-5-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c