提交 9c1a57d7 编写于 作者: L Leon Elazar 提交者: Alex Deucher

drm/amd/display: check surface size is at least as large as stream

Signed-off-by: NLeon Elazar <leon.elazar@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 cad3c7a9
......@@ -967,9 +967,9 @@ static bool dce110_validate_surface_sets(
return false;
if (set[i].surfaces[0]->src_rect.width
!= set[i].stream->src.width
< set[i].stream->src.width
|| set[i].surfaces[0]->src_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)
......
......@@ -966,9 +966,9 @@ static bool dce112_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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册