tu: Use cached coherent memory when possible for query pools
It's expected to read back the result on the CPU, so make this cached when cached coherent memory is available. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35443>
This commit is contained in:
@@ -390,7 +390,7 @@ tu_CreateQueryPool(VkDevice _device,
|
||||
slot_size += sizeof(struct perfcntr_query_slot) * collection->num_enabled_perfcntrs;
|
||||
}
|
||||
|
||||
VkResult result = tu_bo_init_new(device, &pool->vk.base, &pool->bo,
|
||||
VkResult result = tu_bo_init_new_cached(device, &pool->vk.base, &pool->bo,
|
||||
pCreateInfo->queryCount * slot_size, TU_BO_ALLOC_NO_FLAGS, "query pool");
|
||||
if (result != VK_SUCCESS) {
|
||||
vk_query_pool_destroy(&device->vk, pAllocator, &pool->vk);
|
||||
|
||||
Reference in New Issue
Block a user