drm/amd/display: Acquire DSC during split stream for ODM only if top_pipe
authorSung Lee <sung.lee@amd.com>
Wed, 9 Dec 2020 19:58:59 +0000 (14:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:02:24 +0000 (15:02 -0500)
commit73d48f0851847268482260eb955ed8d928b7f19c
tree4c055d4041f6590a4958c5d297790cbc70c3780e
parenta71e5529d2674584fda0fa09a7de4efc8e17160d
drm/amd/display: Acquire DSC during split stream for ODM only if top_pipe

[WHY]
DSC should only be acquired per OPP. Therefore, DSC should only
be acquired for the top_pipe when ODM is enabled.
Not doing this check may lead to acquiring more DSC's than needed
when doing MPO + ODM Combine.

[HOW]
Only acquire DSC if pipe is top_pipe.

Signed-off-by: Sung Lee <sung.lee@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c