1 #ifndef __NVC0_QUERY_H__
2 #define __NVC0_QUERY_H__
4 #include "pipe/p_context.h"
6 #include "nouveau_context.h"
11 struct nvc0_query_funcs
{
12 void (*destroy_query
)(struct nvc0_context
*, struct nvc0_query
*);
13 boolean (*begin_query
)(struct nvc0_context
*, struct nvc0_query
*);
14 void (*end_query
)(struct nvc0_context
*, struct nvc0_query
*);
15 boolean (*get_query_result
)(struct nvc0_context
*, struct nvc0_query
*,
16 boolean
, union pipe_query_result
*);
20 const struct nvc0_query_funcs
*funcs
;
25 static inline struct nvc0_query
*
26 nvc0_query(struct pipe_query
*pipe
)
28 return (struct nvc0_query
*)pipe
;
32 * Driver queries groups:
34 #define NVC0_HW_SM_QUERY_GROUP 0
35 #define NVC0_HW_METRIC_QUERY_GROUP 1
36 #define NVC0_SW_QUERY_DRV_STAT_GROUP 2
38 void nvc0_init_query_functions(struct nvc0_context
*);