summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml2
diff options
context:
space:
mode:
authorTaimur Hassan <syed.hassan@amd.com>2023-07-26 00:10:37 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-10-09 23:50:45 +0300
commit21eeb0511496c15aada81755bc4a4b4c87767941 (patch)
tree232c7626f9df989b07e7dc97e4241b7d0a29395d /drivers/gpu/drm/amd/display/dc/dml2
parent1d93c4db4e0fc82e9f975af213fd8dd00dd6ecc8 (diff)
downloadlinux-21eeb0511496c15aada81755bc4a4b4c87767941.tar.xz
drm/amd/display: Split pipe for stereo timings
[Why & How] DML2 did not carry over DML1 logic that splits pipe for stero timings. Pipe splitting is needed in this case to pass stereo tests. Reviewed-by: Charlene Liu <charlene.liu@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Signed-off-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com> Signed-off-by: Taimur Hassan <syed.hassan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml2')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c b/drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c
index 8da145fd4d7b..116b78a5107c 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c
@@ -708,6 +708,17 @@ bool dml2_map_dc_pipes(struct dml2_context *ctx, struct dc_state *state, const s
// If ODM combine is not inuse, then the number of pipes
// per plane is determined by MPC combine factor
scratch.mpc_info.mpc_factor = DPPPerSurface[plane_disp_cfg_index];
+
+ //For stereo timings, we need to pipe split
+ if ((state->streams[stream_index]->view_format ==
+ VIEW_3D_FORMAT_SIDE_BY_SIDE ||
+ state->streams[stream_index]->view_format ==
+ VIEW_3D_FORMAT_TOP_AND_BOTTOM) &&
+ (state->streams[stream_index]->timing.timing_3d_format ==
+ TIMING_3D_FORMAT_TOP_AND_BOTTOM ||
+ state->streams[stream_index]->timing.timing_3d_format ==
+ TIMING_3D_FORMAT_SIDE_BY_SIDE))
+ scratch.mpc_info.mpc_factor = 2;
} else {
// If ODM combine is enabled, then we use at most 1 pipe per
// odm slice per plane, i.e. MPC combine is never used