mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 03:35:27 +07:00
drm/amd/display: fix pipe re-assignment when odm present
Currently pipe split may steal an existing ODM pipe depending on stream sequence. This change prevents that from happening as easily. Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Gary Kattan <Gary.Kattan@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
377c9d0473
commit
8b8eda0144
@ -2202,7 +2202,8 @@ static struct pipe_ctx *dcn20_find_secondary_pipe(struct dc *dc,
|
||||
*/
|
||||
if (secondary_pipe == NULL) {
|
||||
for (j = dc->res_pool->pipe_count - 1; j >= 0; j--) {
|
||||
if (dc->current_state->res_ctx.pipe_ctx[j].top_pipe == NULL) {
|
||||
if (dc->current_state->res_ctx.pipe_ctx[j].top_pipe == NULL
|
||||
&& dc->current_state->res_ctx.pipe_ctx[j].prev_odm_pipe == NULL) {
|
||||
preferred_pipe_idx = j;
|
||||
|
||||
if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user