Commit 9a0beb39 authored by Yue Hin Lau's avatar Yue Hin Lau Committed by Alex Deucher

drm/amd/display: CNVC pseudocode review follow up

Signed-off-by: default avatarYue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: default avatarEric Bernstein <Eric.Bernstein@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8e504bcc
...@@ -226,7 +226,7 @@ bool dc_stream_set_cursor_attributes( ...@@ -226,7 +226,7 @@ bool dc_stream_set_cursor_attributes(
if (pipe_ctx->plane_res.dpp != NULL && if (pipe_ctx->plane_res.dpp != NULL &&
pipe_ctx->plane_res.dpp->funcs->set_cursor_attributes != NULL) pipe_ctx->plane_res.dpp->funcs->set_cursor_attributes != NULL)
pipe_ctx->plane_res.dpp->funcs->set_cursor_attributes( pipe_ctx->plane_res.dpp->funcs->set_cursor_attributes(
pipe_ctx->plane_res.dpp, attributes); pipe_ctx->plane_res.dpp, attributes->color_format);
} }
stream->cursor_attributes = *attributes; stream->cursor_attributes = *attributes;
......
...@@ -386,10 +386,9 @@ void dpp1_cnv_setup ( ...@@ -386,10 +386,9 @@ void dpp1_cnv_setup (
void dpp1_set_cursor_attributes( void dpp1_set_cursor_attributes(
struct dpp *dpp_base, struct dpp *dpp_base,
const struct dc_cursor_attributes *attr) enum dc_cursor_color_format color_format)
{ {
struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base);
enum dc_cursor_color_format color_format = attr->color_format;
REG_UPDATE_2(CURSOR0_CONTROL, REG_UPDATE_2(CURSOR0_CONTROL,
CUR0_MODE, color_format, CUR0_MODE, color_format,
......
...@@ -122,7 +122,7 @@ struct dpp_funcs { ...@@ -122,7 +122,7 @@ struct dpp_funcs {
void (*set_cursor_attributes)( void (*set_cursor_attributes)(
struct dpp *dpp_base, struct dpp *dpp_base,
const struct dc_cursor_attributes *attr); enum dc_cursor_color_format color_format);
void (*set_cursor_position)( void (*set_cursor_position)(
struct dpp *dpp_base, struct dpp *dpp_base,
......
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