]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3ef10e406a80094e693f95d160ae216ca60971f
tree4c055d4041f6590a4958c5d297790cbc70c3780e
parente5ad041591ebd189a0a11fc0fd9b1baef1bfb660
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