diff options
author | Mark Janes <[email protected]> | 2019-04-22 11:43:12 -0700 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-08-09 19:28:03 -0700 |
commit | 0fd4359733e6920d5cac9596eeada753a587a246 (patch) | |
tree | 7c501737149b0fa19bd80ae7fbae7ff3593e8c8b /src/gallium/drivers/iris/iris_context.h | |
parent | e4aa0fc63a86be6f5e1015db66d6a4682b7d6876 (diff) |
iris/perf: implement routines to return counter info
With this commit, Iris will report that AMD_performance_monitor is
supported, and will allow the caller to query the available metrics.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index f25c91fb317..158dfe70d71 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -460,6 +460,11 @@ struct iris_vtable { struct iris_bo *bo, uint32_t offset, uint64_t imm); + void (*emit_mi_report_perf_count)(struct iris_batch *batch, + struct iris_bo *bo, + uint32_t offset_in_bytes, + uint32_t report_id); + unsigned (*derived_program_state_size)(enum iris_program_cache_id id); void (*store_derived_program_state)(struct iris_context *ice, enum iris_program_cache_id cache_id, @@ -886,6 +891,11 @@ void iris_render_cache_add_bo(struct iris_batch *batch, enum isl_aux_usage aux_usage); void iris_cache_flush_for_depth(struct iris_batch *batch, struct iris_bo *bo); void iris_depth_cache_add_bo(struct iris_batch *batch, struct iris_bo *bo); +int iris_get_driver_query_info(struct pipe_screen *pscreen, unsigned index, + struct pipe_driver_query_info *info); +int iris_get_driver_query_group_info(struct pipe_screen *pscreen, + unsigned index, + struct pipe_driver_query_group_info *info); /* iris_state.c */ void gen9_toggle_preemption(struct iris_context *ice, |