intel/perf: move is_query_ready to gen_perf
[mesa.git] / src / intel / perf / gen_perf.h
index 066a2a4ba21f8c234d65422a7965f4c482311bac..efb884afe36f770f2359db7ebae581b698484f6b 100644 (file)
@@ -221,6 +221,7 @@ struct gen_perf_config {
       void (*bo_unmap)(void *bo);
       bool (*batch_references)(void *batch, void *bo);
       void (*bo_wait_rendering)(void *bo);
+      int (*bo_busy)(void *bo);
       void (*emit_mi_flush)(void *ctx);
       void (*emit_mi_report_perf_count)(void *ctx,
                                         void *bo,
@@ -623,5 +624,11 @@ bool gen_perf_begin_query(struct gen_perf_context *perf_ctx,
                           struct gen_perf_query_object *query);
 void gen_perf_end_query(struct gen_perf_context *perf_ctx,
                         struct gen_perf_query_object *query);
+void gen_perf_wait_query(struct gen_perf_context *perf_ctx,
+                         struct gen_perf_query_object *query,
+                         void *current_batch);
+bool gen_perf_is_query_ready(struct gen_perf_context *perf_ctx,
+                             struct gen_perf_query_object *query,
+                             void *current_batch);
 
 #endif /* GEN_PERF_H */