mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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:
parent
7171c3dd71
commit
b8a5aeee48
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue