Path: blob/21.2-virgl/src/gallium/drivers/nouveau/nv50/nv50_query.h
4574 views
#ifndef __NV50_QUERY_H__1#define __NV50_QUERY_H__23#include "pipe/p_context.h"45#include "nouveau_context.h"67struct nv50_context;8struct nv50_query;910struct nv50_query_funcs {11void (*destroy_query)(struct nv50_context *, struct nv50_query *);12bool (*begin_query)(struct nv50_context *, struct nv50_query *);13void (*end_query)(struct nv50_context *, struct nv50_query *);14bool (*get_query_result)(struct nv50_context *, struct nv50_query *,15bool, union pipe_query_result *);16};1718struct nv50_query {19const struct nv50_query_funcs *funcs;20uint16_t type;21uint16_t index;22};2324static inline struct nv50_query *25nv50_query(struct pipe_query *pipe)26{27return (struct nv50_query *)pipe;28}2930/*31* Driver queries groups:32*/33#define NV50_HW_SM_QUERY_GROUP 034#define NV50_HW_METRIC_QUERY_GROUP 13536void nv50_init_query_functions(struct nv50_context *);3738#endif394041