diff options
author | Jason Ekstrand <[email protected]> | 2020-03-19 16:23:01 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-24 06:28:28 +0000 |
commit | be451f71ab37e6bf1bf2bc24580de202783b4331 (patch) | |
tree | a84df418154a42cb8c81742660042952d10d6209 | |
parent | d63d0006860ac079f411c1f0d81101741a22af10 (diff) |
anv: Stop fetching the timestamp frequency ourselves
gen_get_device_info_from_fd fetches the timestamp frequency from the
kernel. ANV also carrying code for it is redundant.
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4250>
-rw-r--r-- | src/intel/vulkan/anv_device.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3cd3b0f7906..cffcecca75c 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -477,19 +477,6 @@ anv_physical_device_try_create(struct anv_instance *instance, device->always_flush_cache = driQueryOptionb(&instance->dri_options, "always_flush_cache"); - /* Starting with Gen10, the timestamp frequency of the command streamer may - * vary from one part to another. We can query the value from the kernel. - */ - if (device->info.gen >= 10) { - int timestamp_frequency = - anv_gem_get_param(fd, I915_PARAM_CS_TIMESTAMP_FREQUENCY); - - if (timestamp_frequency < 0) - intel_logw("Kernel 4.16-rc1+ required to properly query CS timestamp frequency"); - else - device->info.timestamp_frequency = timestamp_frequency; - } - /* GENs prior to 8 do not support EU/Subslice info */ if (device->info.gen >= 8) { device->subslice_total = anv_gem_get_param(fd, I915_PARAM_SUBSLICE_TOTAL); |