drm/amd/display: Indicate stream change on ODM change
authorChris Park <chris.park@amd.com>
Fri, 17 Jun 2022 17:21:16 +0000 (13:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:14:11 +0000 (16:14 -0400)
commit4984dcdc1f78529a0c699c1931971b7bc5e32a04
tree3e503ae6af6ada9a0fdf22ab74ea11d1ce215b41
parent8a077d9caa3a274de36ee2fe7b608041f5690343
drm/amd/display: Indicate stream change on ODM change

[Why]
With ODM policy 2 to 1, there exists a new use case
scenario where stream content is unchanged, but ODM
may be used.  When this happens, the stream needs
to be committed with a new pipe setting.
This did not happen due to stream change
detection logic not accounting for ODM.

[How]
Set ODM flag in stream and commit stream when change
in ODM has been detected due to policy change.

Reviewed-by: Samson Tam <Samson.Tam@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Chris Park <chris.park@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc_stream.h