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:
Connor Abbott
2025-06-10 14:24:27 -04:00
committed by Marge Bot
parent 77b96ac0a7
commit 83212054e0
+1 -1
View File
@@ -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);