Lines Matching refs:hwperfmon
37 struct vc4_hwperfmon *hwperfmon; member
122 struct vc4_hwperfmon *hwperfmon; in vc4_create_batch_query() local
140 hwperfmon = calloc(1, sizeof(*hwperfmon)); in vc4_create_batch_query()
141 if (!hwperfmon) in vc4_create_batch_query()
145 hwperfmon->events[i] = query_types[i] - in vc4_create_batch_query()
148 query->hwperfmon = hwperfmon; in vc4_create_batch_query()
172 if (query->hwperfmon && query->hwperfmon->id) { in vc4_destroy_query()
173 if (query->hwperfmon->id) { in vc4_destroy_query()
176 req.id = query->hwperfmon->id; in vc4_destroy_query()
181 free(query->hwperfmon); in vc4_destroy_query()
196 if (!query->hwperfmon) in vc4_begin_query()
204 if (query->hwperfmon->id) { in vc4_begin_query()
207 destroyreq.id = query->hwperfmon->id; in vc4_begin_query()
212 req.events[i] = query->hwperfmon->events[i]; in vc4_begin_query()
219 query->hwperfmon->id = req.id; in vc4_begin_query()
225 ctx->perfmon = query->hwperfmon; in vc4_begin_query()
235 if (!query->hwperfmon) in vc4_end_query()
238 if (ctx->perfmon != query->hwperfmon) in vc4_end_query()
259 if (!query->hwperfmon) { in vc4_get_query_result()
264 if (!vc4_wait_seqno(ctx->screen, query->hwperfmon->last_seqno, in vc4_get_query_result()
268 req.id = query->hwperfmon->id; in vc4_get_query_result()
269 req.values_ptr = (uintptr_t)query->hwperfmon->counters; in vc4_get_query_result()
275 vresult->batch[i].u64 = query->hwperfmon->counters[i]; in vc4_get_query_result()