Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <Alvin.Lee2@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dillon Varone and committed by
Alex Deucher
bb622e0c d5bec403

+4 -1
+4 -1
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
··· 1741 1741 * only do gamma programming for powering on, internal memcmp to avoid 1742 1742 * updating on slave planes 1743 1743 */ 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) 1745 1748 hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream); 1746 1749 1747 1750 /* If the pipe has been enabled or has a different opp, we