diff options
author | Rob Clark <[email protected]> | 2017-04-21 09:50:30 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-04-22 10:03:01 -0400 |
commit | df63ff4d8248d81ecb8d0f3059bf2c67431e6f2f (patch) | |
tree | 6bdc94b7326d0367ebdf6b5579fca13e19997ff4 /src/gallium/drivers/freedreno/freedreno_query.c | |
parent | 2faf227ec2e22c7a37e0a54783a3f0a0062ac852 (diff) |
freedreno: make hw-query a helper
For a5xx (and actually some queries on a4xx) we can accumulate results
in the cmdstream, so we don't need this elaborate mechanism of tracking
per-tile query results. So make it into vfuncs so generation specific
backend can use it when it makes sense.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_query.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_query.c b/src/gallium/drivers/freedreno/freedreno_query.c index 1e72c6d65f1..a27ddb5c638 100644 --- a/src/gallium/drivers/freedreno/freedreno_query.c +++ b/src/gallium/drivers/freedreno/freedreno_query.c @@ -46,8 +46,8 @@ fd_create_query(struct pipe_context *pctx, unsigned query_type, unsigned index) struct fd_query *q; q = fd_sw_create_query(ctx, query_type); - if (!q) - q = fd_hw_create_query(ctx, query_type); + if (!q && ctx->create_query) + q = ctx->create_query(ctx, query_type); return (struct pipe_query *) q; } |