summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_query.c
diff options
context:
space:
mode:
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;
}