diff options
author | Brian Paul <brianp@vmware.com> | 2010-01-04 11:47:39 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-01-04 11:47:39 -0700 |
commit | 0fb1eaddfbaf487067e0ff4f1d6f82145b6b0acd (patch) | |
tree | 0f3f0239f09d5681e38a474259e018ba34a160a2 /src/mesa/state_tracker/st_cb_queryobj.h | |
parent | 195568e4cb0524d71db0ac68cf5a95b33a1af6b4 (diff) | |
parent | c9b558351847133dced0c9daaeb84d57d550afc9 (diff) |
Merge branch 'gallium-conditional-rendering'
Diffstat (limited to 'src/mesa/state_tracker/st_cb_queryobj.h')
-rw-r--r-- | src/mesa/state_tracker/st_cb_queryobj.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_queryobj.h b/src/mesa/state_tracker/st_cb_queryobj.h index 9220a212b6..fa256b7182 100644 --- a/src/mesa/state_tracker/st_cb_queryobj.h +++ b/src/mesa/state_tracker/st_cb_queryobj.h @@ -29,6 +29,27 @@ #define ST_CB_QUERYOBJ_H +/** + * Subclass of gl_query_object + */ +struct st_query_object +{ + struct gl_query_object base; + struct pipe_query *pq; +}; + + +/** + * Cast wrapper + */ +static INLINE struct st_query_object * +st_query_object(struct gl_query_object *q) +{ + return (struct st_query_object *) q; +} + + + extern void st_init_query_functions(struct dd_function_table *functions); |