aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_query.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_query.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_query.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_query.h b/src/gallium/drivers/freedreno/freedreno_query.h
index 15e9ce450de..e69ff7a88a1 100644
--- a/src/gallium/drivers/freedreno/freedreno_query.h
+++ b/src/gallium/drivers/freedreno/freedreno_query.h
@@ -46,6 +46,7 @@ struct fd_query {
const struct fd_query_funcs *funcs;
bool active;
int type;
+ unsigned index;
};
static inline struct fd_query *
@@ -102,6 +103,12 @@ int pidx(unsigned query_type)
return 3;
case PIPE_QUERY_TIMESTAMP:
return 4;
+
+ case PIPE_QUERY_PRIMITIVES_GENERATED:
+ return 5;
+ case PIPE_QUERY_PRIMITIVES_EMITTED:
+ return 6;
+
default:
return -1;
}