summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vkms/vkms_formats.c
diff options
context:
space:
mode:
authorLouis Chauvet <louis.chauvet@bootlin.com>2024-11-18 19:28:21 +0100
committerLouis Chauvet <louis.chauvet@bootlin.com>2024-11-22 14:00:07 +0100
commitcb6de83faa9049bf40e7dc6821d903016bec2337 (patch)
tree82b5770c216230ef4819c60e33675ff7a4e4ea95 /drivers/gpu/drm/vkms/vkms_formats.c
parentd6dc39e495678d54a8125e1ae08b3ca35c306426 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/vkms/vkms_formats.c')
0 files changed, 0 insertions, 0 deletions