Skip to content
/ linux Public

Commit dea8268

Browse files
Wayne LinSasha Levin
authored andcommitted
drm/amd/display: Avoid updating surface with the same surface under MPO
[ Upstream commit 1a38ded ] [Why & How] Although it's dummy updates of surface update for committing stream updates, we should not have dummy_updates[j].surface all indicating to the same surface under multiple surfaces case. Otherwise, copy_surface_update_to_plane() in update_planes_and_stream_state() will update to the same surface only. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a71819d commit dea8268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10724,7 +10724,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
1072410724
continue;
1072510725
}
1072610726
for (j = 0; j < status->plane_count; j++)
10727-
dummy_updates[j].surface = status->plane_states[0];
10727+
dummy_updates[j].surface = status->plane_states[j];
1072810728

1072910729
sort(dummy_updates, status->plane_count,
1073010730
sizeof(*dummy_updates), dm_plane_layer_index_cmp, NULL);

0 commit comments

Comments
 (0)