Skip to content

Commit 2dc8450

Browse files
melissawenalexdeucher
authored andcommitted
drm/amd/display: program DPP shaper and 3D LUT if updated
If shaper and 3D LUT data updates, lut_3d bit in update_flag is updated and we need to call set_input_transfer_func to program DPP shaper and 3D LUTs. Small cleanup of code style in the related if-condition. Tested-by: Daniel Wheeler <[email protected]> Reviewed-by: Krunoslav Kovac <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Melissa Wen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d614908 commit 2dc8450

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,8 +1764,9 @@ static void dcn20_program_pipe(
17641764
hws->funcs.set_hdr_multiplier(pipe_ctx);
17651765

17661766
if (pipe_ctx->update_flags.bits.enable ||
1767-
pipe_ctx->plane_state->update_flags.bits.in_transfer_func_change ||
1768-
pipe_ctx->plane_state->update_flags.bits.gamma_change)
1767+
pipe_ctx->plane_state->update_flags.bits.in_transfer_func_change ||
1768+
pipe_ctx->plane_state->update_flags.bits.gamma_change ||
1769+
pipe_ctx->plane_state->update_flags.bits.lut_3d)
17691770
hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);
17701771

17711772
/* dcn10_translate_regamma_to_hw_format takes 750us to finish

0 commit comments

Comments
 (0)