mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 07:40:38 +02:00
nvk: Add support for VK_QUERY_POOL_CREATE_RESET_BIT_KHR
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35804>
This commit is contained in:
parent
bfc6ec0981
commit
b7be6e73c9
1 changed files with 2 additions and 1 deletions
|
|
@ -83,7 +83,8 @@ nvk_CreateQueryPool(VkDevice device,
|
|||
return result;
|
||||
}
|
||||
|
||||
if (pdev->debug_flags & NVK_DEBUG_ZERO_MEMORY)
|
||||
if ((pdev->debug_flags & NVK_DEBUG_ZERO_MEMORY) ||
|
||||
(pCreateInfo->flags & VK_QUERY_POOL_CREATE_RESET_BIT_KHR))
|
||||
memset(pool->mem->map, 0, mem_size);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue