turnip: rename tu_drm_get_timestamp into tu_device_get_gpu_timestamp
It is not drm specific and will be implemented in kgsl. Change parameter to tu_device along the way. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14391>
This commit is contained in:
parent
f2c53c2a9b
commit
a6482a3a6e
|
@ -115,9 +115,9 @@ tu_drm_get_gmem_base(const struct tu_physical_device *dev, uint64_t *base)
|
|||
}
|
||||
|
||||
int
|
||||
tu_drm_get_timestamp(struct tu_physical_device *device, uint64_t *ts)
|
||||
tu_device_get_gpu_timestamp(struct tu_device *dev, uint64_t *ts)
|
||||
{
|
||||
return tu_drm_get_param(device, MSM_PARAM_TIMESTAMP, ts);
|
||||
return tu_drm_get_param(dev->physical_device, MSM_PARAM_TIMESTAMP, ts);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -657,9 +657,9 @@ tu_device_wait_u_trace(struct tu_device *dev, struct tu_u_trace_syncobj *syncobj
|
|||
}
|
||||
|
||||
int
|
||||
tu_drm_get_timestamp(struct tu_physical_device *device, uint64_t *ts)
|
||||
tu_device_get_gpu_timestamp(struct tu_device *dev, uint64_t *ts)
|
||||
{
|
||||
tu_finishme("tu_drm_get_timestamp");
|
||||
tu_finishme("tu_device_get_gpu_timestamp");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ sync_timestamp(struct tu_device *dev)
|
|||
if (cpu_ts < next_clock_sync_ns)
|
||||
return;
|
||||
|
||||
if (tu_device_get_timestamp(dev, &gpu_ts)) {
|
||||
if (tu_device_get_gpu_timestamp(dev, &gpu_ts)) {
|
||||
PERFETTO_ELOG("Could not sync CPU and GPU clocks");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -97,8 +97,8 @@ struct tu_perfetto_state *
|
|||
tu_device_get_perfetto_state(struct tu_device *dev);
|
||||
|
||||
int
|
||||
tu_device_get_timestamp(struct tu_device *dev,
|
||||
uint64_t *ts);
|
||||
tu_device_get_gpu_timestamp(struct tu_device *dev,
|
||||
uint64_t *ts);
|
||||
|
||||
uint64_t
|
||||
tu_device_ticks_to_ns(struct tu_device *dev, uint64_t ts);
|
||||
|
|
|
@ -34,13 +34,6 @@ tu_device_get_perfetto_state(struct tu_device *dev)
|
|||
return &dev->perfetto;
|
||||
}
|
||||
|
||||
int
|
||||
tu_device_get_timestamp(struct tu_device *dev,
|
||||
uint64_t *ts)
|
||||
{
|
||||
return tu_drm_get_timestamp(dev->physical_device, ts);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
tu_u_trace_submission_data_get_submit_id(const struct tu_u_trace_submission_data *data)
|
||||
{
|
||||
|
|
|
@ -1728,8 +1728,8 @@ VkResult
|
|||
tu_enumerate_devices(struct tu_instance *instance);
|
||||
|
||||
int
|
||||
tu_drm_get_timestamp(struct tu_physical_device *device,
|
||||
uint64_t *ts);
|
||||
tu_device_get_gpu_timestamp(struct tu_device *dev,
|
||||
uint64_t *ts);
|
||||
|
||||
int
|
||||
tu_drm_submitqueue_new(const struct tu_device *dev,
|
||||
|
|
Loading…
Reference in New Issue