Commit dc0def6
committed
drm/msm/dpu: move layout setup population out of dpu_plane_prepare_fb()
Move the call to dpu_format_populate_plane_sizes() to the atomic_check
step, so that any issues with the FB layout can be reported as early as
possible.
At the same time move the call to dpu_format_populate_addrs() to
dpu_plane_sspp_atomic_update(). This way the all layout management is
performed only for the visible planes: the .prepare_fb callback is
called for not visible planes too, so keeping dpu_format_populate_addrs
in dpu_plane_prepare_fb() will require dpu_format_populate_plane_sizes()
to be called for !visible planes too.
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/612251/
Link: https://lore.kernel.org/r/20240903-dpu-mode-config-width-v6-12-617e1ecc4b7a@linaro.org1 parent 4f3ec1e commit dc0def6
1 file changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | 678 | | |
692 | 679 | | |
693 | 680 | | |
| |||
863 | 850 | | |
864 | 851 | | |
865 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
866 | 859 | | |
867 | 860 | | |
868 | 861 | | |
| |||
1102 | 1095 | | |
1103 | 1096 | | |
1104 | 1097 | | |
1105 | | - | |
| 1098 | + | |
| 1099 | + | |
1106 | 1100 | | |
1107 | 1101 | | |
1108 | 1102 | | |
| |||
1123 | 1117 | | |
1124 | 1118 | | |
1125 | 1119 | | |
| 1120 | + | |
| 1121 | + | |
1126 | 1122 | | |
1127 | 1123 | | |
1128 | 1124 | | |
| |||
1187 | 1183 | | |
1188 | 1184 | | |
1189 | 1185 | | |
1190 | | - | |
| 1186 | + | |
1191 | 1187 | | |
1192 | 1188 | | |
1193 | 1189 | | |
| |||
0 commit comments