i965: move brw_timebase_scale to device info
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Mark Janes <mark.a.janes@intel.com>
This commit is contained in:
@@ -275,6 +275,13 @@ void gen_device_info_update_from_masks(struct gen_device_info *devinfo,
|
||||
void gen_device_info_update_from_topology(struct gen_device_info *devinfo,
|
||||
const struct drm_i915_query_topology_info *topology);
|
||||
|
||||
static inline uint64_t
|
||||
gen_device_info_timebase_scale(const struct gen_device_info *devinfo,
|
||||
uint64_t gpu_timestamp)
|
||||
{
|
||||
return (1000000000ull * gpu_timestamp) / devinfo->timestamp_frequency;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user