drm/amd/display: validate plane in dce110 for scaling
authorShirish S <shirish.s@amd.com>
Tue, 13 Feb 2018 08:41:37 +0000 (14:11 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:36:17 +0000 (15:36 -0500)
commit080589737c13a079bb0355377815b0c0c1cdf779
tree86c16e4b417e3f2c4ea823872817bfe39b5f297b
parentc21b68c5ebd9b0267d59c7a899ee4c6a7e0668fc
drm/amd/display: validate plane in dce110 for scaling

CZ & ST support uptil a limit 2:1 downscaling, this patch
adds validate_plane hook, that shall be used to validate
the plane attributes sent by the user space based
on dce110 capabilities.

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