intel/perf: move is_query_ready to gen_perf
[mesa.git] / src / intel / perf / gen_perf.h
index 776873dbf99d93a1a691f35e90663093b94ff12c..efb884afe36f770f2359db7ebae581b698484f6b 100644 (file)
@@ -220,6 +220,8 @@ struct gen_perf_config {
       void *(*bo_map)(void *ctx, void *bo, unsigned flags);
       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,
@@ -622,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 */