X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Ffreedreno%2Ffreedreno_query.h;h=18c0d173bb89beb9bf68e1d6c8908cb197eff4a7;hb=1b3aefad46bda59ff02c0d81c53fd3fbf249d8f4;hp=15e9ce450dee8c523719a4610a2391c0b3bd32c1;hpb=0e30c6b8a7e84211bb417362ec73f24ef134ae34;p=mesa.git diff --git a/src/gallium/drivers/freedreno/freedreno_query.h b/src/gallium/drivers/freedreno/freedreno_query.h index 15e9ce450de..18c0d173bb8 100644 --- a/src/gallium/drivers/freedreno/freedreno_query.h +++ b/src/gallium/drivers/freedreno/freedreno_query.h @@ -35,7 +35,7 @@ struct fd_query; struct fd_query_funcs { void (*destroy_query)(struct fd_context *ctx, struct fd_query *q); - bool (*begin_query)(struct fd_context *ctx, struct fd_query *q); + void (*begin_query)(struct fd_context *ctx, struct fd_query *q); void (*end_query)(struct fd_context *ctx, struct fd_query *q); bool (*get_query_result)(struct fd_context *ctx, struct fd_query *q, bool wait, @@ -44,8 +44,8 @@ struct fd_query_funcs { struct fd_query { const struct fd_query_funcs *funcs; - bool active; int type; + unsigned index; }; static inline struct fd_query * @@ -102,6 +102,12 @@ int pidx(unsigned query_type) return 3; case PIPE_QUERY_TIMESTAMP: return 4; + + case PIPE_QUERY_PRIMITIVES_GENERATED: + return 5; + case PIPE_QUERY_PRIMITIVES_EMITTED: + return 6; + default: return -1; }