]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/panic: Move drawing functions to drm_draw
authorJocelyn Falempe <jfalempe@redhat.com>
Wed, 4 Dec 2024 15:45:00 +0000 (16:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:31:11 +0000 (16:31 +0200)
commit268a5b682a18ac8b79b90c3abec3707db408464f
treea62ee9802c82728b799aa24833462f22b80d356d
parent8b9c53f8edd4a877923b4ff6f80677733c7a3b61
drm/panic: Move drawing functions to drm_draw

[ Upstream commit 31fa2c1ca0b239f64eaf682f1685bbbd74fc0181 ]

Move the color conversions, blit and fill functions to drm_draw.c,
so that they can be re-used by drm_log.
drm_draw is internal to the drm subsystem, and shouldn't be used by
gpu drivers.

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241204160014.1171469-2-jfalempe@redhat.com
Stable-dep-of: 05663d88fd0b ("drm/tests: Fix drm_test_fb_xrgb8888_to_xrgb2101010() on big-endian")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_draw.c [new file with mode: 0644]
drivers/gpu/drm/drm_draw_internal.h [new file with mode: 0644]
drivers/gpu/drm/drm_panic.c