diff options
Diffstat (limited to 'src/vulkan/anv_query.c')
-rw-r--r-- | src/vulkan/anv_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_query.c b/src/vulkan/anv_query.c index 8891aa02d76..7aa54363aee 100644 --- a/src/vulkan/anv_query.c +++ b/src/vulkan/anv_query.c @@ -55,7 +55,7 @@ VkResult anv_CreateQueryPool( if (pool == NULL) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); - size = pCreateInfo->slots * sizeof(struct anv_query_pool_slot); + size = pCreateInfo->entryCount * sizeof(struct anv_query_pool_slot); result = anv_bo_init_new(&pool->bo, device, size); if (result != VK_SUCCESS) goto fail; |