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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40552>
This commit is contained in:
Connor Abbott 2026-03-20 14:37:34 -04:00 committed by Marge Bot
parent 7171c3dd71
commit b8a5aeee48

View file

@ -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;