mbox series

[0/2] fbdev: Fix image blitting for arbitrary image widths

Message ID 20220313192952.12058-1-tzimmermann@suse.de (mailing list archive)
Headers show
Series fbdev: Fix image blitting for arbitrary image widths | expand

Message

Thomas Zimmermann March 13, 2022, 7:29 p.m. UTC
Recent optimization of the fbdev image-bitting helpers broke the code for
image width that do not align with multiples of 8. Both, sys and cfb, are
affected. Fix this problem by handling the trailing pixels on each line
separately.

Tested with simpledrm and the 7x14 font.

Thomas Zimmermann (2):
  fbdev: Fix sys_imageblit() for arbitrary image widths
  fbdev: Fix cfb_imageblit() for arbitrary image widths

 drivers/video/fbdev/core/cfbimgblt.c | 28 +++++++++++++++++++++++----
 drivers/video/fbdev/core/sysimgblt.c | 29 ++++++++++++++++++++++++----
 2 files changed, 49 insertions(+), 8 deletions(-)