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>
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;
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;
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;
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;