drm/amd/display: check if modeset is required before adding plane
authorShirish S <shirish.s@amd.com>
Fri, 27 Oct 2017 03:25:55 +0000 (03:25 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Oct 2017 17:15:57 +0000 (13:15 -0400)
commit7bef1af3b9c2a5690a41298b5986dbde82fbedbc
treedfaa8c5eafd02f030c5f55edca22b979f6bc3ccf
parent56087b31f4b2861c773185ec45d313b55dbbb69d
drm/amd/display: check if modeset is required before adding plane

Adding affected planes without checking if modeset is requested from the user space causes performance regression in video p/b scenarios when full screen p/b is not composited.

Hence add a check before adding a plane as affected.

bug: https://bugs.freedesktop.org/show_bug.cgi?id=103408

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c