drm/msm: add arrays listing formats supported by MDP4/MDP5 hardware
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 20 Apr 2024 04:00:59 +0000 (07:00 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 23 Apr 2024 09:56:26 +0000 (12:56 +0300)
commit966c5deecf89a4fccd65106149850ab563825d3a
tree2e66254c87dab2c1f88c080fc304a837464efa42
parent789881448b9043f50a4f69c75aa3bd3a0026c8ac
drm/msm: add arrays listing formats supported by MDP4/MDP5 hardware

MDP4 and MDP5 drivers enumerate supported formats each time the plane is
created. In preparation to merger of MDP DPU format databases, define
precise formats list, so that changes to the database do not cause the
driver to add unsupported format to the list.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/590421/
Link: https://lore.kernel.org/r/20240420-dpu-format-v2-2-9e93226cbffd@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
drivers/gpu/drm/msm/disp/mdp_format.c
drivers/gpu/drm/msm/disp/mdp_kms.h