summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce100
diff options
context:
space:
mode:
authorReza Amini <reza.amini@amd.com>2017-03-17 15:24:09 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:21:52 -0400
commit934d292316b5d3933d7fe6811c5d7a696c33910c (patch)
treed516c043e8166bf5a2f3a91203739e93ab36c63b /drivers/gpu/drm/amd/display/dc/dce100
parent64d8b7806e40a1520d5eb47157ff4ee15efc3bf6 (diff)
downloadlinux-stable-934d292316b5d3933d7fe6811c5d7a696c33910c.tar.gz
linux-stable-934d292316b5d3933d7fe6811c5d7a696c33910c.tar.bz2
linux-stable-934d292316b5d3933d7fe6811c5d7a696c33910c.zip
drm/amd/display: remove surface validation against stream rect
Surface information is by default copied from old context in dc_commit_stream. Thus unchange streams will not be affected. For new streams, we shouldn't validate the new mode against the surface configuration of old_context. Signed-off-by: Reza Amini <reza.amini@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce100')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
index d1685df09815..7fae8537e18a 100644
--- a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
@@ -788,11 +788,6 @@ static bool dce100_validate_surface_sets(
if (set[i].surface_count > 1)
return false;
- if (set[i].surfaces[0]->clip_rect.width
- < set[i].stream->src.width
- || set[i].surfaces[0]->clip_rect.height
- < set[i].stream->src.height)
- return false;
if (set[i].surfaces[0]->format
>= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
return false;