summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/freedreno/freedreno_query_acc.c
AgeCommit message (Collapse)AuthorFilesLines
2018-09-05freedreno: add fd_context_batch() accessorRob Clark1-2/+2
For cases in which (after the following commit) ctx->batch may be null. Prep work for following commit. Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-07-18freedreno: batch query prep-workRob Clark1-7/+18
For batch queries we have N different query_type's for one query, so mapping a single query_type to a sample_provider doesn't really work out. Instead add a new constructor to construct a query directly from a sample_provider. Also, the sample buffer size needs to be determined at runtime, as it depends on the number of query_types. Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-07-18freedreno: rework accumulated query result vfuncRob Clark1-1/+1
Take the query object, rather than the ctx. The ctx ptr isn't hugely useful but for back queries we will need the query object to properly get the results. Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-12-03freedreno: rework fence trackingRob Clark1-2/+2
ctx->last_fence isn't such a terribly clever idea, if batches can be flushed out of order. Instead, each batch now holds a fence, which is created before the batch is flushed (useful for next patch), that later gets populated after the batch is actually flushed. Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-10-24freedreno: per-context fd_pipeRob Clark1-3/+3
To enable per-context priorities, we need to have per-context pipe's. Unfortunately we still need to keep the global screen pipe, mostly just for screen->get_timestamp(). Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-04-22freedreno: add support for hw accumulating queriesRob Clark1-0/+230
Some queries on a4xx and all queries on a5xx can do result accumulation on CP so we don't need to track per-tile samples. We do still need to handle pausing/resuming while switching batches (in case the query is active over multiple draws which are executed out of order). So introduce new accumulated-query helpers for these sorts of queries, since it doesn't really fit in cleanly with the original query infra- structure. Signed-off-by: Rob Clark <robdclark@gmail.com>