drm/amd/display: surface validation on dce100
authorLeon Elazar <leon.elazar@amd.com>
Mon, 30 Jan 2017 15:25:43 +0000 (10:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:13:16 +0000 (17:13 -0400)
Signed-off-by: Leon Elazar <leon.elazar@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c

index 6ae334b..800b22e 100644 (file)
@@ -789,9 +789,9 @@ static bool dce100_validate_surface_sets(
                        return false;
 
                if (set[i].surfaces[0]->clip_rect.width
-                               != set[i].stream->src.width
+                               < set[i].stream->src.width
                                || set[i].surfaces[0]->clip_rect.height
-                               != set[i].stream->src.height)
+                               < set[i].stream->src.height)
                        return false;
                if (set[i].surfaces[0]->format
                                >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)