drm/amd/display: dce110: fix plane validation
authorShirish S <shirish.s@amd.com>
Mon, 21 Aug 2017 08:32:17 +0000 (14:02 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:28 +0000 (18:17 -0400)
commit4451a2551dcac9ea8c90829e0fcc798b834deb6b
tree7de164d23db8a1de4878bda441fdd9bac04ae680
parent1bb47154408ffa0501bb544580304ce0fdbc4ab6
drm/amd/display: dce110: fix plane validation

For MPO to work with per surface rendering and flipping,
the previous logic of restricting plane[1] only as underlay
needs to be removed.
validate_surface_sets() now checks only the width and height
bounds in case of underlay rather than checking format.

Without this patch one cannot set underlay only.

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