Skip to content

Commit ddc07a3

Browse files
Dmytro Laktyushkinalexdeucher
authored andcommitted
drm/amd/display: remove interlace scaling adjustment
We do not need to adjust surface scaling when p2i is enabled and we do not support interlaced timing otherwise Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c991552 commit ddc07a3

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎drivers/gpu/drm/amd/display/dc/core/dc_resource.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,9 +1115,6 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)
11151115
pipe_ctx->plane_res.scl_data.format = convert_pixel_format_to_dalsurface(
11161116
pipe_ctx->plane_state->format);
11171117

1118-
if (pipe_ctx->stream->timing.flags.INTERLACE)
1119-
pipe_ctx->stream->dst.height *= 2;
1120-
11211118
calculate_scaling_ratios(pipe_ctx);
11221119

11231120
calculate_viewport(pipe_ctx);
@@ -1138,9 +1135,6 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)
11381135

11391136
pipe_ctx->plane_res.scl_data.h_active = timing->h_addressable + timing->h_border_left + timing->h_border_right;
11401137
pipe_ctx->plane_res.scl_data.v_active = timing->v_addressable + timing->v_border_top + timing->v_border_bottom;
1141-
if (pipe_ctx->stream->timing.flags.INTERLACE)
1142-
pipe_ctx->plane_res.scl_data.v_active *= 2;
1143-
11441138

11451139
/* Taps calculations */
11461140
if (pipe_ctx->plane_res.xfm != NULL)
@@ -1185,9 +1179,6 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)
11851179
plane_state->dst_rect.x,
11861180
plane_state->dst_rect.y);
11871181

1188-
if (pipe_ctx->stream->timing.flags.INTERLACE)
1189-
pipe_ctx->stream->dst.height /= 2;
1190-
11911182
return res;
11921183
}
11931184

0 commit comments

Comments
 (0)