Commit 934d2923 authored by Reza Amini's avatar Reza Amini Committed by Alex Deucher

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: default avatarReza Amini <reza.amini@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 64d8b780
......@@ -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;
......
......@@ -1007,11 +1007,6 @@ static bool dce110_validate_surface_sets(
if (set[i].surface_count > 2)
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;
......
......@@ -972,11 +972,6 @@ static bool dce112_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;
......
......@@ -804,11 +804,6 @@ static bool dce80_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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment