Lines Matching refs:btr

304 			in_out_vrr->max_duration_in_us - in_out_vrr->btr.margin_in_us;  in apply_below_the_range()
307 if ((last_render_time_in_us + in_out_vrr->btr.margin_in_us / 2) < max_render_time_in_us) { in apply_below_the_range()
309 if (in_out_vrr->btr.btr_active) { in apply_below_the_range()
310 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
311 in_out_vrr->btr.btr_active = false; in apply_below_the_range()
313 } else if (last_render_time_in_us > (max_render_time_in_us + in_out_vrr->btr.margin_in_us / 2)) { in apply_below_the_range()
315 if (!in_out_vrr->btr.btr_active) in apply_below_the_range()
316 in_out_vrr->btr.btr_active = true; in apply_below_the_range()
320 if (!in_out_vrr->btr.btr_active) { in apply_below_the_range()
321 in_out_vrr->btr.inserted_duration_in_us = 0; in apply_below_the_range()
322 in_out_vrr->btr.frames_to_insert = 0; in apply_below_the_range()
323 in_out_vrr->btr.frame_counter = 0; in apply_below_the_range()
339 in_out_vrr->btr.mid_point_in_us - 1) / in apply_below_the_range()
340 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
346 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
348 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
349 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
356 in_out_vrr->btr.mid_point_in_us; in apply_below_the_range()
363 (in_out_vrr->btr.mid_point_in_us > in apply_below_the_range()
365 (in_out_vrr->btr.mid_point_in_us - frame_time_in_us) : in apply_below_the_range()
366 (frame_time_in_us - in_out_vrr->btr.mid_point_in_us); in apply_below_the_range()
411 if (in_out_vrr->btr.frames_to_insert != 0 && in apply_below_the_range()
413 if (((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) < in apply_below_the_range()
415 ((last_render_time_in_us / in_out_vrr->btr.frames_to_insert) > in apply_below_the_range()
417 frames_to_insert = in_out_vrr->btr.frames_to_insert; in apply_below_the_range()
438 in_out_vrr->btr.inserted_duration_in_us = in apply_below_the_range()
440 in_out_vrr->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
441 in_out_vrr->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1063 in_out_vrr->btr.btr_enabled = in_config->btr; in mod_freesync_build_vrr_params()
1066 in_out_vrr->btr.btr_enabled = false; in mod_freesync_build_vrr_params()
1068 in_out_vrr->btr.margin_in_us = in_out_vrr->max_duration_in_us - in mod_freesync_build_vrr_params()
1070 if (in_out_vrr->btr.margin_in_us > BTR_MAX_MARGIN) in mod_freesync_build_vrr_params()
1071 in_out_vrr->btr.margin_in_us = BTR_MAX_MARGIN; in mod_freesync_build_vrr_params()
1074 in_out_vrr->btr.btr_active = false; in mod_freesync_build_vrr_params()
1075 in_out_vrr->btr.inserted_duration_in_us = 0; in mod_freesync_build_vrr_params()
1076 in_out_vrr->btr.frames_to_insert = 0; in mod_freesync_build_vrr_params()
1077 in_out_vrr->btr.frame_counter = 0; in mod_freesync_build_vrr_params()
1081 in_out_vrr->btr.mid_point_in_us = in mod_freesync_build_vrr_params()
1149 if (in_out_vrr->btr.btr_enabled) { in mod_freesync_handle_preflip()
1217 in_out_vrr->btr.btr_active) { in mod_freesync_handle_v_update()
1225 if (in_out_vrr->btr.frames_to_insert == in mod_freesync_handle_v_update()
1226 in_out_vrr->btr.frame_counter) { in mod_freesync_handle_v_update()
1230 in_out_vrr->btr.inserted_duration_in_us); in mod_freesync_handle_v_update()
1235 if (in_out_vrr->btr.frame_counter > 0) in mod_freesync_handle_v_update()
1236 in_out_vrr->btr.frame_counter--; in mod_freesync_handle_v_update()
1239 if (in_out_vrr->btr.frame_counter == 0) { in mod_freesync_handle_v_update()