Lines Matching defs:pool
55 struct lvp_query_pool *pool;
56 uint32_t pool_size = sizeof(*pool) + pCreateInfo->queryCount * sizeof(struct pipe_query *);
58 pool = vk_zalloc2(&device->vk.alloc, pAllocator,
61 if (!pool)
64 vk_object_base_init(&device->vk, &pool->base,
66 pool->type = pCreateInfo->queryType;
67 pool->count = pCreateInfo->queryCount;
68 pool->base_type = pipeq;
69 pool->pipeline_stats = pCreateInfo->pipelineStatistics;
71 *pQueryPool = lvp_query_pool_to_handle(pool);
81 LVP_FROM_HANDLE(lvp_query_pool, pool, _pool);
83 if (!pool)
86 for (unsigned i = 0; i < pool->count; i++)
87 if (pool->queries[i])
88 device->queue.ctx->destroy_query(device->queue.ctx, pool->queries[i]);
89 vk_object_base_finish(&pool->base);
90 vk_free2(&device->vk.alloc, pAllocator, pool);
104 LVP_FROM_HANDLE(lvp_query_pool, pool, queryPool);
113 if (pool->queries[i]) {
115 pool->queries[i],
126 if (pool->type == VK_QUERY_TYPE_PIPELINE_STATISTICS) {
127 uint32_t mask = pool->pipeline_stats;
135 } else if (pool->type == VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT) {
145 if (pool->type == VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT)
153 if (pool->type == VK_QUERY_TYPE_PIPELINE_STATISTICS) {
154 uint32_t mask = pool->pipeline_stats;
165 } else if (pool->type == VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT) {
184 if (pool->type == VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT)
207 LVP_FROM_HANDLE(lvp_query_pool, pool, queryPool);
212 if (pool->queries[idx]) {
213 device->queue.ctx->destroy_query(device->queue.ctx, pool->queries[idx]);
214 pool->queries[idx] = NULL;