struct {
void *(*bo_alloc)(void *bufmgr, const char *name, uint64_t size);
void (*bo_unreference)(void *bo);
+ void (*emit_mi_flush)(void *ctx);
void (*emit_mi_report_perf_count)(void *ctx,
void *bo,
uint32_t offset_in_bytes,
* This is our Begin synchronization point to drain current work on the
* GPU before we capture our first counter snapshot...
*/
- brw_emit_mi_flush(brw);
+ perf_cfg->vtbl.emit_mi_flush(brw);
switch (query->kind) {
case GEN_PERF_QUERY_TYPE_OA:
* For more details see comment in brw_begin_perf_query for
* corresponding flush.
*/
- brw_emit_mi_flush(brw);
+ perf_cfg->vtbl.emit_mi_flush(brw);
switch (obj->queryinfo->kind) {
case GEN_PERF_QUERY_TYPE_OA:
typedef void (*bo_unreference_t)(void *);
typedef void (* emit_mi_report_t)(void *, void *, uint32_t, uint32_t);
+typedef void (*emit_mi_flush_t)(void *);
static void
brw_oa_batchbuffer_flush(void *c, const char *file, int line)
perf_cfg->vtbl.bo_alloc = brw_oa_bo_alloc;
perf_cfg->vtbl.bo_unreference = (bo_unreference_t)brw_bo_unreference;
+ perf_cfg->vtbl.emit_mi_flush = (emit_mi_flush_t)brw_emit_mi_flush;
perf_cfg->vtbl.emit_mi_report_perf_count =
(emit_mi_report_t)brw_oa_emit_mi_report_perf_count;
perf_cfg->vtbl.batchbuffer_flush = brw_oa_batchbuffer_flush;