drm/amd/display: Make program_output_csc HWSS interface function
Signed-off-by: Eric Bernstein <eric.bernstein@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
388277b170
commit
8e357610ca
|
@ -1564,7 +1564,7 @@ static void program_csc_matrix(struct pipe_ctx *pipe_ctx,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void program_output_csc(struct dc *dc,
|
static void dcn10_program_output_csc(struct dc *dc,
|
||||||
struct pipe_ctx *pipe_ctx,
|
struct pipe_ctx *pipe_ctx,
|
||||||
enum dc_color_space colorspace,
|
enum dc_color_space colorspace,
|
||||||
uint16_t *matrix,
|
uint16_t *matrix,
|
||||||
|
@ -1917,7 +1917,7 @@ static void update_dchubp_dpp(
|
||||||
/*gamut remap*/
|
/*gamut remap*/
|
||||||
program_gamut_remap(pipe_ctx);
|
program_gamut_remap(pipe_ctx);
|
||||||
|
|
||||||
program_output_csc(dc,
|
dc->hwss.program_output_csc(dc,
|
||||||
pipe_ctx,
|
pipe_ctx,
|
||||||
pipe_ctx->stream->output_color_space,
|
pipe_ctx->stream->output_color_space,
|
||||||
pipe_ctx->stream->csc_color_matrix.matrix,
|
pipe_ctx->stream->csc_color_matrix.matrix,
|
||||||
|
@ -2667,6 +2667,7 @@ static const struct hw_sequencer_funcs dcn10_funcs = {
|
||||||
.update_pending_status = dcn10_update_pending_status,
|
.update_pending_status = dcn10_update_pending_status,
|
||||||
.set_input_transfer_func = dcn10_set_input_transfer_func,
|
.set_input_transfer_func = dcn10_set_input_transfer_func,
|
||||||
.set_output_transfer_func = dcn10_set_output_transfer_func,
|
.set_output_transfer_func = dcn10_set_output_transfer_func,
|
||||||
|
.program_output_csc = dcn10_program_output_csc,
|
||||||
.power_down = dce110_power_down,
|
.power_down = dce110_power_down,
|
||||||
.enable_accelerated_mode = dce110_enable_accelerated_mode,
|
.enable_accelerated_mode = dce110_enable_accelerated_mode,
|
||||||
.enable_timing_synchronization = dcn10_enable_timing_synchronization,
|
.enable_timing_synchronization = dcn10_enable_timing_synchronization,
|
||||||
|
|
|
@ -95,6 +95,12 @@ struct hw_sequencer_funcs {
|
||||||
enum dc_color_space colorspace,
|
enum dc_color_space colorspace,
|
||||||
uint16_t *matrix);
|
uint16_t *matrix);
|
||||||
|
|
||||||
|
void (*program_output_csc)(struct dc *dc,
|
||||||
|
struct pipe_ctx *pipe_ctx,
|
||||||
|
enum dc_color_space colorspace,
|
||||||
|
uint16_t *matrix,
|
||||||
|
int opp_id);
|
||||||
|
|
||||||
void (*update_plane_addr)(
|
void (*update_plane_addr)(
|
||||||
const struct dc *dc,
|
const struct dc *dc,
|
||||||
struct pipe_ctx *pipe_ctx);
|
struct pipe_ctx *pipe_ctx);
|
||||||
|
@ -203,6 +209,7 @@ struct hw_sequencer_funcs {
|
||||||
|
|
||||||
void (*set_cursor_position)(struct pipe_ctx *pipe);
|
void (*set_cursor_position)(struct pipe_ctx *pipe);
|
||||||
void (*set_cursor_attribute)(struct pipe_ctx *pipe);
|
void (*set_cursor_attribute)(struct pipe_ctx *pipe);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void color_space_to_black_color(
|
void color_space_to_black_color(
|
||||||
|
|
Loading…
Reference in New Issue