mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
intel/common/xe: Re implement xe_gem_read_render_timestamp() with xe_gem_read_correlate_cpu_gpu_timestamp()
With the removal of DRM_IOCTL_XE_MMIO xe_gem_read_render_timestamp() was always returning false but with DRM_XE_DEVICE_QUERY_ENGINE_CYCLES it can be re implemented making use of xe_gem_read_correlate_cpu_gpu_timestamp(). Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24591>
This commit is contained in:
parent
feae70f608
commit
236da520f4
1 changed files with 5 additions and 2 deletions
|
|
@ -30,8 +30,11 @@
|
|||
bool
|
||||
xe_gem_read_render_timestamp(int fd, uint64_t *value)
|
||||
{
|
||||
/* TODO: re-implement with DRM_XE_QUERY_CS_CYCLES */
|
||||
return false;
|
||||
UNUSED uint64_t cpu;
|
||||
|
||||
return xe_gem_read_correlate_cpu_gpu_timestamp(fd, INTEL_ENGINE_CLASS_RENDER,
|
||||
0, CLOCK_MONOTONIC, &cpu,
|
||||
value, NULL);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue