aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_query_hw.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-02-14 11:14:06 -0500
committerRob Clark <[email protected]>2016-07-23 13:39:30 -0400
commit9253dcde585042242614c4b6677d8f2b13bd2237 (patch)
tree1e93aadd2e9a26ad0d802b214a2f3d97f45ae6aa /src/gallium/drivers/freedreno/freedreno_query_hw.c
parentb888d8e9372b671074844a208fd9cd499ef53c69 (diff)
freedreno/a4xx: timestamp queries
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_query_hw.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_query_hw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_query_hw.c b/src/gallium/drivers/freedreno/freedreno_query_hw.c
index 141dc8a28fe..7b528f5ccae 100644
--- a/src/gallium/drivers/freedreno/freedreno_query_hw.c
+++ b/src/gallium/drivers/freedreno/freedreno_query_hw.c
@@ -47,8 +47,13 @@ static int pidx(unsigned query_type)
return 0;
case PIPE_QUERY_OCCLUSION_PREDICATE:
return 1;
+ /* TODO currently queries only emitted in main pass (not in binning pass)..
+ * which is fine for occlusion query, but pretty much not anything else.
+ */
case PIPE_QUERY_TIME_ELAPSED:
return 2;
+ case PIPE_QUERY_TIMESTAMP:
+ return 3;
default:
return -1;
}