drm/amd/display: Add dc cap to restrict VSR downscaling src size
authorXingyue Tao <[email protected]>
Thu, 19 Apr 2018 20:23:12 +0000 (16:23 -0400)
committerAlex Deucher <[email protected]>
Fri, 18 May 2018 21:08:25 +0000 (16:08 -0500)
commit3f460907be1b53441526e644019bcf150c433f59
treea7c8c222d2a81a938eb6fa605d482e3e24ba1817
parent7ea034ce8188eaf61ce2b7d4e747e1f6e3bb8aa3
drm/amd/display: Add dc cap to restrict VSR downscaling src size

- Adds int max_downscale_src_width in dc struct
- Checks and does not support if downscale size is more than 4k (width > 3840)

Signed-off-by: Xingyue Tao <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c