提交 e61a04f1 编写于 作者: H Harry Wentland 提交者: Alex Deucher

drm/amd/display: Use MED update type if clip position changes

Signed-off-by: NHarry Wentland <harry.wentland@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>
上级 d4b45973
......@@ -1143,7 +1143,7 @@ static enum surface_update_type get_scaling_info_update_type(
return UPDATE_TYPE_FULL;
/* Check Clip rectangles if not equal
* difference is in offsets == > UPDATE_TYPE_FAST
* difference is in offsets == > UPDATE_TYPE_MED
* difference is in dimensions == > UPDATE_TYPE_FULL
*/
if (memcmp(&u->scaling_info->clip_rect,
......@@ -1152,7 +1152,7 @@ static enum surface_update_type get_scaling_info_update_type(
u->surface->clip_rect.height) &&
(u->scaling_info->clip_rect.width ==
u->surface->clip_rect.width)) {
return UPDATE_TYPE_FAST;
return UPDATE_TYPE_MED;
} else {
return UPDATE_TYPE_FULL;
}
......@@ -1326,8 +1326,7 @@ void dc_update_surfaces_and_stream(struct dc *dc,
srf_updates[i].plane_info->dcc;
}
/* not sure if we still need this */
if (update_type == UPDATE_TYPE_FULL) {
if (update_type >= UPDATE_TYPE_MED) {
for (j = 0; j < core_dc->res_pool->pipe_count; j++) {
struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册