Lines Matching refs:frames_stats
195 struct frame_stat frames_stats[200]; member
776 uint32_t f_idx = data->n_frames % ARRAY_SIZE(data->frames_stats); in snapshot_swapchain_frame()
789 memset(&data->frames_stats[f_idx], 0, sizeof(data->frames_stats[f_idx])); in snapshot_swapchain_frame()
791 …data->frames_stats[f_idx].stats[s] += device_data->frame_stats.stats[s] + data->frame_stats.stats[… in snapshot_swapchain_frame()
872 if ((ARRAY_SIZE(data->frames_stats) - _idx) > data->n_frames) in get_time_stat()
874 int idx = ARRAY_SIZE(data->frames_stats) + in get_time_stat()
875 data->n_frames < ARRAY_SIZE(data->frames_stats) ? in get_time_stat()
878 idx %= ARRAY_SIZE(data->frames_stats); in get_time_stat()
880 return data->frames_stats[idx].stats[data->stat_selector] / data->time_dividor; in get_time_stat()
886 if ((ARRAY_SIZE(data->frames_stats) - _idx) > data->n_frames) in get_stat()
888 int idx = ARRAY_SIZE(data->frames_stats) + in get_stat()
889 data->n_frames < ARRAY_SIZE(data->frames_stats) ? in get_stat()
892 idx %= ARRAY_SIZE(data->frames_stats); in get_stat()
893 return data->frames_stats[idx].stats[data->stat_selector]; in get_stat()
952 for (uint32_t f = 0; f < MIN2(data->n_frames, ARRAY_SIZE(data->frames_stats)); f++) { in compute_swapchain_display()
954 data->stats_min.stats[s] = MIN2(data->frames_stats[f].stats[s], in compute_swapchain_display()
956 data->stats_max.stats[s] = MAX2(data->frames_stats[f].stats[s], in compute_swapchain_display()
986 ARRAY_SIZE(data->frames_stats), 0, in compute_swapchain_display()
990 get_time_stat(data, ARRAY_SIZE(data->frames_stats) - 1), in compute_swapchain_display()
994 ARRAY_SIZE(data->frames_stats), 0, in compute_swapchain_display()
1000 get_stat(data, ARRAY_SIZE(data->frames_stats) - 1), in compute_swapchain_display()