Mesa (master): anv: skip writing perfcntr in results on Gen12+
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Apr 18 10:42:51 UTC 2020
Module: Mesa
Branch: master
Commit: f27c707585ccca0d61b0b688defb59598f37f8b1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f27c707585ccca0d61b0b688defb59598f37f8b1
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Fri Apr 17 09:51:22 2020 +0300
anv: skip writing perfcntr in results on Gen12+
We were not capturing the register already so don't bother writing the
delta in the results (we were previously doing a delta between two 0
values).
v2: Fix unused function warning
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4586>
---
src/intel/vulkan/genX_query.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c
index 82b48233c9a..ba7c1e94fe5 100644
--- a/src/intel/vulkan/genX_query.c
+++ b/src/intel/vulkan/genX_query.c
@@ -200,11 +200,13 @@ intel_perf_rpstart_offset(bool end)
return 16 + (end ? sizeof(uint32_t) : 0);
}
+#if GEN_GEN >= 8 && GEN_GEN <= 11
static uint32_t
intel_perf_counter(bool end)
{
return 24 + (end ? (2 * sizeof(uint64_t)) : 0);
}
+#endif
static uint32_t
intel_perf_mi_rpc_offset(bool end)
@@ -394,9 +396,11 @@ VkResult genX(GetQueryPoolResults)(
&device->info,
&result,
core_freq[0], core_freq[1]);
+#if GEN_GEN >= 8 && GEN_GEN <= 11
gen_perf_query_mdapi_write_perfcntr(pData, stride, &device->info,
query_data + intel_perf_counter(false),
query_data + intel_perf_counter(true));
+#endif
const uint64_t *marker = query_data + intel_perf_marker_offset();
gen_perf_query_mdapi_write_marker(pData, stride, &device->info, *marker);
break;
More information about the mesa-commit
mailing list