iris/perf: add delete query
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
aca42759ff
commit
8c4c346665
|
@ -378,3 +378,15 @@ allocation_failure:
|
|||
free(monitor);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void iris_destroy_monitor_object(struct pipe_context *ctx,
|
||||
struct iris_monitor_object *monitor)
|
||||
{
|
||||
struct iris_context *ice = (struct iris_context *)ctx;
|
||||
gen_perf_delete_query(ice->perf_ctx, monitor->query);
|
||||
free(monitor->result_buffer);
|
||||
monitor->result_buffer = NULL;
|
||||
free(monitor->active_counters);
|
||||
monitor->active_counters = NULL;
|
||||
free(monitor);
|
||||
}
|
||||
|
|
|
@ -53,4 +53,8 @@ iris_create_monitor_object(struct iris_context *ice,
|
|||
unsigned num_queries,
|
||||
unsigned *query_types);
|
||||
|
||||
struct pipe_query;
|
||||
void iris_destroy_monitor_object(struct pipe_context *ctx,
|
||||
struct iris_monitor_object *monitor);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue