Commit 056f05f6 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: pass vline_config parameter by reference.

Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ac627caf
......@@ -1560,11 +1560,11 @@ static void commit_planes_do_stream_update(struct dc *dc,
if (stream_update->vline0_config && pipe_ctx->stream_res.tg->funcs->program_vline_interrupt)
pipe_ctx->stream_res.tg->funcs->program_vline_interrupt(
pipe_ctx->stream_res.tg, VLINE0, stream->vline0_config);
pipe_ctx->stream_res.tg, VLINE0, &stream->vline0_config);
if (stream_update->vline1_config && pipe_ctx->stream_res.tg->funcs->program_vline_interrupt)
pipe_ctx->stream_res.tg->funcs->program_vline_interrupt(
pipe_ctx->stream_res.tg, VLINE1, stream->vline1_config);
pipe_ctx->stream_res.tg, VLINE1, &stream->vline1_config);
if ((stream_update->hdr_static_metadata && !stream->use_dynamic_meta) ||
stream_update->vrr_infopacket ||
......
......@@ -95,19 +95,19 @@ static void optc1_disable_stereo(struct timing_generator *optc)
void optc1_program_vline_interrupt(
struct timing_generator *optc,
enum vline_select vline,
struct vline_config vline_config)
const struct vline_config *vline_config)
{
struct optc *optc1 = DCN10TG_FROM_TG(optc);
switch (vline) {
case VLINE0:
REG_SET_2(OTG_VERTICAL_INTERRUPT0_POSITION, 0,
OTG_VERTICAL_INTERRUPT0_LINE_START, vline_config.start_line,
OTG_VERTICAL_INTERRUPT0_LINE_END, vline_config.end_line);
OTG_VERTICAL_INTERRUPT0_LINE_START, vline_config->start_line,
OTG_VERTICAL_INTERRUPT0_LINE_END, vline_config->end_line);
break;
case VLINE1:
REG_SET(OTG_VERTICAL_INTERRUPT1_POSITION, 0,
OTG_VERTICAL_INTERRUPT1_LINE_START, vline_config.start_line);
OTG_VERTICAL_INTERRUPT1_LINE_START, vline_config->start_line);
break;
default:
break;
......
......@@ -485,7 +485,7 @@ void optc1_program_timing(
void optc1_program_vline_interrupt(struct timing_generator *optc,
enum vline_select vline,
struct vline_config vline_config);
const struct vline_config *vline_config);
void optc1_program_global_sync(
struct timing_generator *optc);
......
......@@ -151,7 +151,7 @@ struct timing_generator_funcs {
bool use_vbios);
void (*program_vline_interrupt)(struct timing_generator *optc,
enum vline_select vline,
struct vline_config vline_config);
const struct vline_config *vline_config);
bool (*enable_crtc)(struct timing_generator *tg);
bool (*disable_crtc)(struct timing_generator *tg);
bool (*is_counter_moving)(struct timing_generator *tg);
......
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