Skip to content

Commit bb622e0

Browse files
Dillon Varonealexdeucher
authored andcommitted
drm/amd/display: program output tf when required
[Description] Output transfer function must be programmed per pipe as part of a front end update when the plane changes, or output transfer function changes for a given plane. Reviewed-by: Alvin Lee <[email protected]> Acked-by: Jasdeep Dhillon <[email protected]> Signed-off-by: Dillon Varone <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d5bec40 commit bb622e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,10 @@ static void dcn20_program_pipe(
17411741
* only do gamma programming for powering on, internal memcmp to avoid
17421742
* updating on slave planes
17431743
*/
1744-
if (pipe_ctx->update_flags.bits.enable || pipe_ctx->stream->update_flags.bits.out_tf)
1744+
if (pipe_ctx->update_flags.bits.enable ||
1745+
pipe_ctx->update_flags.bits.plane_changed ||
1746+
pipe_ctx->stream->update_flags.bits.out_tf ||
1747+
pipe_ctx->plane_state->update_flags.bits.output_tf_change)
17451748
hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
17461749

17471750
/* If the pipe has been enabled or has a different opp, we

0 commit comments

Comments
 (0)