mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize all query statuses to unavailable */
|
|
||||||
memset(pool->bo->map, 0, pool->bo->size);
|
|
||||||
|
|
||||||
pool->size = pCreateInfo->queryCount;
|
pool->size = pCreateInfo->queryCount;
|
||||||
pool->query_stride = slot_size;
|
pool->query_stride = slot_size;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue