]> www.infradead.org Git - users/willy/xarray.git/commit
drm/panic: only draw the foreground color in drm_panic_blit()
authorJocelyn Falempe <jfalempe@redhat.com>
Mon, 3 Jun 2024 09:47:25 +0000 (11:47 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Mon, 10 Jun 2024 11:49:15 +0000 (13:49 +0200)
commiteef5a55af31792fc7a2082dbebac68a7df4d7643
tree86a95568eaffdb18d827a4e7d04fb8ffae6118f5
parentf8d59fac575a624d1d4bd24424b3ec2bf5c4202a
drm/panic: only draw the foreground color in drm_panic_blit()

The whole framebuffer is cleared, so it's useless to rewrite the
background colored pixels. It allows to simplify the drawing
functions, and prepare the work for the set_pixel() callback.

v2:
 * keep fg16/fg24/fg32 as variable name for the blit function.
 * add drm_panic_is_pixel_fg() to avoid code duplication.
 both suggested by Javier Martinez Canillas

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240603095343.39588-2-jfalempe@redhat.com
drivers/gpu/drm/drm_panic.c