• Home
  • Raw
  • Download

Lines Matching full:pool

41    struct v3dv_query_pool *pool =  in v3dv_CreateQueryPool()  local
42 vk_alloc2(&device->alloc, pAllocator, sizeof(*pool), 8, in v3dv_CreateQueryPool()
44 if (pool == NULL) in v3dv_CreateQueryPool()
47 pool->query_type = pCreateInfo->queryType; in v3dv_CreateQueryPool()
48 pool->query_count = pCreateInfo->queryCount; in v3dv_CreateQueryPool()
52 const uint32_t pool_bytes = sizeof(struct v3dv_query) * pool->query_count; in v3dv_CreateQueryPool()
53 pool->queries = vk_alloc2(&device->alloc, pAllocator, pool_bytes, 8, in v3dv_CreateQueryPool()
55 if (pool->queries == NULL) { in v3dv_CreateQueryPool()
61 for (i = 0; i < pool->query_count; i++) { in v3dv_CreateQueryPool()
62 pool->queries[i].maybe_available = false; in v3dv_CreateQueryPool()
63 switch (pool->query_type) { in v3dv_CreateQueryPool()
65 pool->queries[i].bo = v3dv_bo_alloc(device, 4096, "query", true); in v3dv_CreateQueryPool()
66 if (!pool->queries[i].bo) { in v3dv_CreateQueryPool()
71 if (!v3dv_bo_map(device, pool->queries[i].bo, 4)) { in v3dv_CreateQueryPool()
77 pool->queries[i].value = 0; in v3dv_CreateQueryPool()
84 *pQueryPool = v3dv_query_pool_to_handle(pool); in v3dv_CreateQueryPool()
90 v3dv_bo_free(device, pool->queries[j].bo); in v3dv_CreateQueryPool()
91 vk_free2(&device->alloc, pAllocator, pool->queries); in v3dv_CreateQueryPool()
94 vk_free2(&device->alloc, pAllocator, pool); in v3dv_CreateQueryPool()
105 V3DV_FROM_HANDLE(v3dv_query_pool, pool, queryPool); in v3dv_DestroyQueryPool()
107 if (!pool) in v3dv_DestroyQueryPool()
110 if (pool->query_type == VK_QUERY_TYPE_OCCLUSION) { in v3dv_DestroyQueryPool()
111 for (uint32_t i = 0; i < pool->query_count; i++) in v3dv_DestroyQueryPool()
112 v3dv_bo_free(device, pool->queries[i].bo); in v3dv_DestroyQueryPool()
115 vk_free2(&device->alloc, pAllocator, pool->queries); in v3dv_DestroyQueryPool()
116 vk_free2(&device->alloc, pAllocator, pool); in v3dv_DestroyQueryPool()
133 struct v3dv_query_pool *pool, in get_occlusion_query_result() argument
138 assert(pool && pool->query_type == VK_QUERY_TYPE_OCCLUSION); in get_occlusion_query_result()
140 struct v3dv_query *q = &pool->queries[query]; in get_occlusion_query_result()
167 struct v3dv_query_pool *pool, in get_timestamp_query_result() argument
172 assert(pool && pool->query_type == VK_QUERY_TYPE_TIMESTAMP); in get_timestamp_query_result()
174 struct v3dv_query *q = &pool->queries[query]; in get_timestamp_query_result()
197 struct v3dv_query_pool *pool, in get_query_result() argument
202 switch (pool->query_type) { in get_query_result()
204 return get_occlusion_query_result(device, pool, query, do_wait, available); in get_query_result()
206 return get_timestamp_query_result(device, pool, query, do_wait, available); in get_query_result()
214 struct v3dv_query_pool *pool, in v3dv_get_query_pool_results_cpu() argument
221 assert(first < pool->query_count); in v3dv_get_query_pool_results_cpu()
222 assert(first + count <= pool->query_count); in v3dv_get_query_pool_results_cpu()
232 uint64_t value = get_query_result(device, pool, i, do_wait, &available); in v3dv_get_query_pool_results_cpu()
274 V3DV_FROM_HANDLE(v3dv_query_pool, pool, queryPool); in v3dv_GetQueryPoolResults()
276 return v3dv_get_query_pool_results_cpu(device, pool, firstQuery, queryCount, in v3dv_GetQueryPoolResults()
287 V3DV_FROM_HANDLE(v3dv_query_pool, pool, queryPool); in v3dv_CmdResetQueryPool()
289 v3dv_cmd_buffer_reset_queries(cmd_buffer, pool, firstQuery, queryCount); in v3dv_CmdResetQueryPool()
303 V3DV_FROM_HANDLE(v3dv_query_pool, pool, queryPool); in v3dv_CmdCopyQueryPoolResults()
306 v3dv_cmd_buffer_copy_query_results(cmd_buffer, pool, in v3dv_CmdCopyQueryPoolResults()
318 V3DV_FROM_HANDLE(v3dv_query_pool, pool, queryPool); in v3dv_CmdBeginQuery()
320 v3dv_cmd_buffer_begin_query(cmd_buffer, pool, query, flags); in v3dv_CmdBeginQuery()
329 V3DV_FROM_HANDLE(v3dv_query_pool, pool, queryPool); in v3dv_CmdEndQuery()
331 v3dv_cmd_buffer_end_query(cmd_buffer, pool, query); in v3dv_CmdEndQuery()