diff options
author | Yongqiang Sun <yongqiang.sun@amd.com> | 2017-10-30 17:32:14 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:47:30 -0500 |
commit | e6c258cb4e6fbc7500c493df22f52e1046c575b0 (patch) | |
tree | f0c8f7f6df0d029156caf82c4b7cfcb8018099a5 /drivers/gpu/drm/amd/display/dc/calcs | |
parent | 46f6b85cff2d20a0648c8ef61bfabe12dcf5b640 (diff) |
drm/amd/display: Refactor disable front end pipes.
There are different code to disable front end, it is
difficult to debug and adding new process.
This refactor makes all disable front end call the same
functions.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/calcs')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c index 6d64a069648e..88a004cc2690 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | |||
@@ -1064,6 +1064,9 @@ bool dcn_validate_bandwidth( | |||
1064 | hsplit_pipe->stream = NULL; | 1064 | hsplit_pipe->stream = NULL; |
1065 | hsplit_pipe->top_pipe = NULL; | 1065 | hsplit_pipe->top_pipe = NULL; |
1066 | hsplit_pipe->bottom_pipe = NULL; | 1066 | hsplit_pipe->bottom_pipe = NULL; |
1067 | /* Clear plane_res and stream_res */ | ||
1068 | memset(&hsplit_pipe->plane_res, 0, sizeof(hsplit_pipe->plane_res)); | ||
1069 | memset(&hsplit_pipe->stream_res, 0, sizeof(hsplit_pipe->stream_res)); | ||
1067 | resource_build_scaling_params(pipe); | 1070 | resource_build_scaling_params(pipe); |
1068 | } | 1071 | } |
1069 | /* for now important to do this after pipe split for building e2e params */ | 1072 | /* for now important to do this after pipe split for building e2e params */ |