]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend
authorLouis Chauvet <louis.chauvet@bootlin.com>
Mon, 18 Nov 2024 18:28:21 +0000 (19:28 +0100)
committerLouis Chauvet <louis.chauvet@bootlin.com>
Fri, 22 Nov 2024 13:00:07 +0000 (14:00 +0100)
commitcb6de83faa9049bf40e7dc6821d903016bec2337
tree82b5770c216230ef4819c60e33675ff7a4e4ea95
parentd6dc39e495678d54a8125e1ae08b3ca35c306426
drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend

The pre_mul_alpha_blend is dedicated to blending, so to avoid mixing
different concepts (coordinate calculation and color management), extract
the x_limit and x_dst computation outside of this helper.
It also increases the maintainability by grouping the computation related
to coordinates in the same place: the loop in `blend`.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Reviewed-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241118-yuv-v14-6-2dbc2f1e222c@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
drivers/gpu/drm/vkms/vkms_composer.c