@@ -2562,7 +2562,7 @@ static enum surface_update_type check_update_surfaces_for_stream(
stream_update->integer_scaling_update)
su_flags->bits.scaling = 1;
- if (stream_update->out_transfer_func)
+ if (stream_update->out_transfer_func || stream_update->lut3d_func)
su_flags->bits.out_tf = 1;
if (stream_update->abm_level)
@@ -2911,6 +2911,14 @@ static void copy_stream_update_to_stream(struct dc *dc,
sizeof(struct dc_transfer_func_distributed_points));
}
+ if (update->func_shaper &&
+ stream->func_shaper != update->func_shaper)
+ stream->func_shaper = update->func_shaper;
+
+ if (update->lut3d_func &&
+ stream->lut3d_func != update->lut3d_func)
+ stream->lut3d_func = update->lut3d_func;
+
if (update->hdr_static_metadata)
stream->hdr_static_metadata = *update->hdr_static_metadata;
It follows the same path of out_transfer_func for stream updates, since shaper LUT and 3D LUT is programmed in funcs.set_output_transfer_func() and this function is called in the atomic commit_tail when update_flags.bits.out_tf is set. Signed-off-by: Melissa Wen <mwen@igalia.com> --- drivers/gpu/drm/amd/display/dc/core/dc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)