[Mesa-dev] [PATCH] st/mesa: fix PRIMITIVES_GENERATED query after the "pipeline stat single" changes
Marek Olšák
maraeo at gmail.com
Fri Jan 18 16:27:30 UTC 2019
From: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/state_tracker/st_cb_queryobj.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c
index abb126547c9..642b901d05a 100644
--- a/src/mesa/state_tracker/st_cb_queryobj.c
+++ b/src/mesa/state_tracker/st_cb_queryobj.c
@@ -84,21 +84,22 @@ st_DeleteQuery(struct gl_context *ctx, struct gl_query_object *q)
struct st_query_object *stq = st_query_object(q);
free_queries(pipe, stq);
free(stq);
}
static int
target_to_index(const struct st_context *st, const struct gl_query_object *q)
{
- if (q->Target == GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN ||
+ if (q->Target == GL_PRIMITIVES_GENERATED ||
+ q->Target == GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN ||
q->Target == GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB)
return q->Stream;
if (st->has_single_pipe_stat) {
switch (q->Target) {
case GL_VERTICES_SUBMITTED_ARB:
return PIPE_STAT_QUERY_IA_VERTICES;
case GL_PRIMITIVES_SUBMITTED_ARB:
return PIPE_STAT_QUERY_IA_PRIMITIVES;
case GL_VERTEX_SHADER_INVOCATIONS_ARB:
--
2.17.1
More information about the mesa-dev
mailing list