From b8a5aeee4826c2dafa421a302e2c76c536609ff6 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 20 Mar 2026 14:37:34 -0400 Subject: [PATCH] tu: Don't zero-initialize query pool The kernel already does this for us by zeroing new BOs. It's also unnecessary, unless the newly-introduced VK_QUERY_POOL_CREATE_RESET_BIT_KHR flags is used. If we ever start suballocating query pools, we may have to zero based on that flag, but for now we don't have to do anything. Part-of: --- src/freedreno/vulkan/tu_query_pool.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/freedreno/vulkan/tu_query_pool.cc b/src/freedreno/vulkan/tu_query_pool.cc index 9effe0f387c..3d0851de7c4 100644 --- a/src/freedreno/vulkan/tu_query_pool.cc +++ b/src/freedreno/vulkan/tu_query_pool.cc @@ -440,9 +440,6 @@ tu_CreateQueryPool(VkDevice _device, return result; } - /* Initialize all query statuses to unavailable */ - memset(pool->bo->map, 0, pool->bo->size); - pool->size = pCreateInfo->queryCount; pool->query_stride = slot_size;