diff options
author | Jason Ekstrand <[email protected]> | 2019-03-04 20:01:44 -0600 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-03-18 14:48:41 +0000 |
commit | 887041c7630e72c85d31712f3377d801239f22e4 (patch) | |
tree | a67f60d6af0cc4d4272b6b8f08521b08c7048b28 /src/intel/vulkan/genX_query.c | |
parent | 42ea88c673c74e5837b00a179fbcb9edeac88e4c (diff) |
anv: Implement VK_EXT_host_query_reset
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_query.c')
-rw-r--r-- | src/intel/vulkan/genX_query.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 794d92dc6c9..5d7b5fb458e 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -402,6 +402,20 @@ void genX(CmdResetQueryPool)( } } +void genX(ResetQueryPoolEXT)( + VkDevice _device, + VkQueryPool queryPool, + uint32_t firstQuery, + uint32_t queryCount) +{ + ANV_FROM_HANDLE(anv_query_pool, pool, queryPool); + + for (uint32_t i = 0; i < queryCount; i++) { + uint64_t *slot = pool->bo.map + (firstQuery + i) * pool->stride; + *slot = 0; + } +} + static const uint32_t vk_pipeline_stat_to_reg[] = { GENX(IA_VERTICES_COUNT_num), GENX(IA_PRIMITIVES_COUNT_num), |