···16071607 *srf_update->coeff_reduction_factor;16081608}1609160916101610-static void copy_stream_update_to_stream(struct dc *dc,16111611- struct dc_state *context,16121612- struct dc_stream_state *stream,16131613- const struct dc_stream_update *update)16141614-{16151615- if (update == NULL || stream == NULL)16161616- return;16171617-16181618- if (update->src.height && update->src.width)16191619- stream->src = update->src;16201620-16211621- if (update->dst.height && update->dst.width)16221622- stream->dst = update->dst;16231623-16241624- if (update->out_transfer_func &&16251625- stream->out_transfer_func != update->out_transfer_func) {16261626- stream->out_transfer_func->sdr_ref_white_level =16271627- update->out_transfer_func->sdr_ref_white_level;16281628- stream->out_transfer_func->tf = update->out_transfer_func->tf;16291629- stream->out_transfer_func->type =16301630- update->out_transfer_func->type;16311631- memcpy(&stream->out_transfer_func->tf_pts,16321632- &update->out_transfer_func->tf_pts,16331633- sizeof(struct dc_transfer_func_distributed_points));16341634- }16351635-16361636- if (update->hdr_static_metadata)16371637- stream->hdr_static_metadata = *update->hdr_static_metadata;16381638-16391639- if (update->abm_level)16401640- stream->abm_level = *update->abm_level;16411641-16421642- if (update->periodic_interrupt0)16431643- stream->periodic_interrupt0 = *update->periodic_interrupt0;16441644-16451645- if (update->periodic_interrupt1)16461646- stream->periodic_interrupt1 = *update->periodic_interrupt1;16471647-16481648- if (update->gamut_remap)16491649- stream->gamut_remap_matrix = *update->gamut_remap;16501650-16511651- /* Note: this being updated after mode set is currently not a use case16521652- * however if it arises OCSC would need to be reprogrammed at the16531653- * minimum16541654- */16551655- if (update->output_color_space)16561656- stream->output_color_space = *update->output_color_space;16571657-16581658- if (update->output_csc_transform)16591659- stream->csc_color_matrix = *update->output_csc_transform;16601660-16611661- if (update->vrr_infopacket)16621662- stream->vrr_infopacket = *update->vrr_infopacket;16631663-16641664- if (update->dpms_off)16651665- stream->dpms_off = *update->dpms_off;16661666-16671667- if (update->vsc_infopacket)16681668- stream->vsc_infopacket = *update->vsc_infopacket;16691669-16701670- if (update->vsp_infopacket)16711671- stream->vsp_infopacket = *update->vsp_infopacket;16721672-16731673- if (update->dither_option)16741674- stream->dither_option = *update->dither_option;16751675-}16761676-16771610static void commit_planes_do_stream_update(struct dc *dc,16781611 struct dc_stream_state *stream,16791612 struct dc_stream_update *stream_update,···18561923 }18571924 }18581925 }18591859-18601860- copy_stream_update_to_stream(dc, context, stream, stream_update);1861192618621927 commit_planes_for_stream(18631928 dc,