mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
intel/perf: create a vtable entry for emit_mi_flush
This method is needed to move subsequent methods into perf. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
52f7a0bff7
commit
f57c8a6dc1
2 changed files with 5 additions and 2 deletions
|
|
@ -217,6 +217,7 @@ struct gen_perf_config {
|
|||
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,
|
||||
|
|
|
|||
|
|
@ -795,7 +795,7 @@ brw_begin_perf_query(struct gl_context *ctx,
|
|||
* 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:
|
||||
|
|
@ -1004,7 +1004,7 @@ brw_end_perf_query(struct gl_context *ctx,
|
|||
* 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:
|
||||
|
|
@ -1542,6 +1542,7 @@ brw_oa_emit_mi_report_perf_count(void *c,
|
|||
|
||||
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)
|
||||
|
|
@ -1570,6 +1571,7 @@ brw_init_perf_query_info(struct gl_context *ctx)
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue