mirror of https://gitee.com/openkylin/linux.git
drm/amd/display: Mark DSC resource as unused after copying to the secondary ODM pipe
[why] DSC resource has to be acquired before it can be used and simply copying a reference to it is very likely to cause problems when accessing DSC. [how] Set DSC resource pointer to NULL to mark it as unused after primary pipe resources were copied to the secondary ODM pipe. Signed-off-by: Nikola Cornij <nikola.cornij@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@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
5940ff3941
commit
c92b4c46c1
|
@ -1427,6 +1427,9 @@ static bool dcn20_split_stream_for_combine(
|
|||
secondary_pipe->plane_res.xfm = pool->transforms[secondary_pipe->pipe_idx];
|
||||
secondary_pipe->plane_res.dpp = pool->dpps[secondary_pipe->pipe_idx];
|
||||
secondary_pipe->plane_res.mpcc_inst = pool->dpps[secondary_pipe->pipe_idx]->inst;
|
||||
#ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT
|
||||
secondary_pipe->stream_res.dsc = NULL;
|
||||
#endif
|
||||
if (primary_pipe->bottom_pipe && primary_pipe->bottom_pipe != secondary_pipe) {
|
||||
ASSERT(!secondary_pipe->bottom_pipe);
|
||||
secondary_pipe->bottom_pipe = primary_pipe->bottom_pipe;
|
||||
|
|
Loading…
Reference in New Issue