drm: add drm_fb_xrgb8888_to_rgb565_dstclip()
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Apr 2019 09:52:17 +0000 (11:52 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Apr 2019 04:59:27 +0000 (06:59 +0200)
commitbcc4442008aca0e1566b7367f51670143d1ea7bf
tree76b619e5245d8ef2cb3b585c54c2c3b6991fd77a
parent26f024f54ab69a1012214755223d6ed61dd7bc98
drm: add drm_fb_xrgb8888_to_rgb565_dstclip()

It is a drm_fb_xrgb8888_to_rgb565() variant which checks the clip
rectangle for the destination too.

Common code between drm_fb_xrgb8888_to_rgb565() and
drm_fb_xrgb8888_to_rgb565_dstclip() was factored out into the
drm_fb_xrgb8888_to_rgb565_lines() helper function.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190405095219.9231-4-kraxel@redhat.com
drivers/gpu/drm/drm_format_helper.c
include/drm/drm_format_helper.h