diff options
author | Jason Ekstrand <[email protected]> | 2017-02-18 15:21:04 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-01 13:34:41 +0000 |
commit | c23c6db9aa232de6934ec654d815e808a9895fe2 (patch) | |
tree | 5e829ca173188c8f2a980e137579838ccc46bbc1 /src/intel/vulkan/anv_query.c | |
parent | bf8ef879c62b596bfdad61dfc353a3619a540f01 (diff) |
anv/query: Perform CmdResetQueryPool on the GPU
This fixes a some rendering corruption in The Talos Principle
Reviewed-by: Lionel Landwerlin <[email protected]>
Cc: "13.0 17.0" <[email protected]>
(cherry picked from commit 40087bcb517bda60e666428a7a8f85dfdcbd9a56)
Diffstat (limited to 'src/intel/vulkan/anv_query.c')
-rw-r--r-- | src/intel/vulkan/anv_query.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/intel/vulkan/anv_query.c b/src/intel/vulkan/anv_query.c index da0deb86950..6fe94b0a4c2 100644 --- a/src/intel/vulkan/anv_query.c +++ b/src/intel/vulkan/anv_query.c @@ -169,25 +169,3 @@ VkResult anv_GetQueryPoolResults( return VK_SUCCESS; } - -void anv_CmdResetQueryPool( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount) -{ - ANV_FROM_HANDLE(anv_query_pool, pool, queryPool); - - for (uint32_t i = 0; i < queryCount; i++) { - switch (pool->type) { - case VK_QUERY_TYPE_OCCLUSION: - case VK_QUERY_TYPE_TIMESTAMP: { - struct anv_query_pool_slot *slot = pool->bo.map; - slot[firstQuery + i].available = 0; - break; - } - default: - assert(!"Invalid query type"); - } - } -} |