drm/msm/dpu: simplify blend configuration
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 16 Jan 2023 06:33:16 +0000 (08:33 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 21 Jan 2023 10:23:32 +0000 (12:23 +0200)
commit4488f71f637376178037380c1b8ce45aa1bf5ad4
tree0bc221c4a66e567837e91b7fd4bf0e4a39a94dc6
parent2c36dc9197e30080315e63cbcac0281b8ed9ed77
drm/msm/dpu: simplify blend configuration

Rewrite dpu_hw_ctl_setup_blendstage() to use static data configuration
rather than using a switch-case. This simplifies adding support for new
pipes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550
Patchwork: https://patchwork.freedesktop.org/patch/518485/
Link: https://lore.kernel.org/r/20230116063316.728496-3-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c