Commit 80e80ec8 authored by Bhawanpreet Lakha's avatar Bhawanpreet Lakha Committed by Alex Deucher

drm/amd/display: Fix underscan not using proper scaling

fix underscan not being set correctly
Signed-off-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2938bbb6
...@@ -1362,7 +1362,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ...@@ -1362,7 +1362,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
enum surface_update_type update_type; enum surface_update_type update_type;
struct dc_state *context; struct dc_state *context;
struct dc_context *dc_ctx = dc->ctx; struct dc_context *dc_ctx = dc->ctx;
int i; int i, j;
stream_status = dc_stream_get_status(stream); stream_status = dc_stream_get_status(stream);
context = dc->current_state; context = dc->current_state;
...@@ -1396,8 +1396,17 @@ void dc_commit_updates_for_stream(struct dc *dc, ...@@ -1396,8 +1396,17 @@ void dc_commit_updates_for_stream(struct dc *dc,
if (srf_updates[i].flip_addr) if (srf_updates[i].flip_addr)
surface->address = srf_updates[i].flip_addr->address; surface->address = srf_updates[i].flip_addr->address;
} if (update_type >= UPDATE_TYPE_MED) {
for (j = 0; j < dc->res_pool->pipe_count; j++) {
struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
if (pipe_ctx->plane_state != surface)
continue;
resource_build_scaling_params(pipe_ctx);
}
}
}
commit_planes_for_stream( commit_planes_for_stream(
dc, dc,
......
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