anv: Implement VK_EXT_host_query_reset
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
42ea88c673
commit
887041c763
|
@ -971,6 +971,13 @@ void anv_GetPhysicalDeviceFeatures2(
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES_EXT: {
|
||||
VkPhysicalDeviceHostQueryResetFeaturesEXT *features =
|
||||
(VkPhysicalDeviceHostQueryResetFeaturesEXT *)ext;
|
||||
features->hostQueryReset = true;
|
||||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT: {
|
||||
VkPhysicalDeviceInlineUniformBlockFeaturesEXT *features =
|
||||
(VkPhysicalDeviceInlineUniformBlockFeaturesEXT *)ext;
|
||||
|
|
|
@ -126,6 +126,7 @@ EXTENSIONS = [
|
|||
Extension('VK_EXT_external_memory_host', 1, True),
|
||||
Extension('VK_EXT_global_priority', 1,
|
||||
'device->has_context_priority'),
|
||||
Extension('VK_EXT_host_query_reset', 1, True),
|
||||
Extension('VK_EXT_inline_uniform_block', 1, True),
|
||||
Extension('VK_EXT_pci_bus_info', 2, True),
|
||||
Extension('VK_EXT_post_depth_coverage', 1, 'device->info.gen >= 9'),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue