summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_query.c
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-10-19 23:12:45 +0200
committerChristian Gmeiner <[email protected]>2017-10-20 12:42:40 +0200
commit282d8698ec4d792a8eeb1a4b1cd8c85b4fd8ac8d (patch)
tree205dc53696979fcfc27bf0b9dd36f6fa2e416b5b /src/gallium/drivers/etnaviv/etnaviv_query.c
parentb8c335c91b67e6bf2fa7b81fa3fb1a71c9dc540a (diff)
etnaviv: add basic infrastructure for hw queries
No hardware query is supported yet. v1 -> v2 - removed query_type from strcut etna_hw_sample_provider Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_query.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_query.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_query.c b/src/gallium/drivers/etnaviv/etnaviv_query.c
index a416a7cb0f3..9e897cd75a3 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_query.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_query.c
@@ -30,6 +30,7 @@
#include "etnaviv_context.h"
#include "etnaviv_query.h"
+#include "etnaviv_query_hw.h"
#include "etnaviv_query_sw.h"
static struct pipe_query *
@@ -40,6 +41,8 @@ etna_create_query(struct pipe_context *pctx, unsigned query_type,
struct etna_query *q;
q = etna_sw_create_query(ctx, query_type);
+ if (!q)
+ q = etna_hw_create_query(ctx, query_type);
return (struct pipe_query *)q;
}