summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-05-09 17:33:19 -0400
committerRob Clark <[email protected]>2014-05-13 18:33:19 -0400
commit13a0cf4480b908aafa337c121cbdfc338318f088 (patch)
treec92403a228174933127874d48cd01402a65e2b8c /src/gallium/drivers/freedreno/freedreno_context.h
parent2265bda5139442a65be0695af4aadd624ca31990 (diff)
freedreno/query: allow multiple query implementations
Split out fd_query into an abstract base class, to allow multiple implementations. The current sw based queries are moved into fd_sw_query. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h
index a50e6236903..2e7fdedd9ae 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.h
+++ b/src/gallium/drivers/freedreno/freedreno_context.h
@@ -258,6 +258,10 @@ struct fd_context {
void (*draw)(struct fd_context *pctx, const struct pipe_draw_info *info);
void (*clear)(struct fd_context *ctx, unsigned buffers,
const union pipe_color_union *color, double depth, unsigned stencil);
+
+ /* queries: */
+ struct fd_query * (*create_query)(struct fd_context *ctx,
+ unsigned query_type);
};
static INLINE struct fd_context *