<div dir="ltr">ping<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 18, 2019 at 11:27 AM Marek Olšák <<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Marek Olšák <<a href="mailto:marek.olsak@amd.com" target="_blank">marek.olsak@amd.com</a>><br>
<br>
---<br>
src/mesa/state_tracker/st_cb_queryobj.c | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c<br>
index abb126547c9..642b901d05a 100644<br>
--- a/src/mesa/state_tracker/st_cb_queryobj.c<br>
+++ b/src/mesa/state_tracker/st_cb_queryobj.c<br>
@@ -84,21 +84,22 @@ st_DeleteQuery(struct gl_context *ctx, struct gl_query_object *q)<br>
struct st_query_object *stq = st_query_object(q);<br>
<br>
free_queries(pipe, stq);<br>
<br>
free(stq);<br>
}<br>
<br>
static int<br>
target_to_index(const struct st_context *st, const struct gl_query_object *q)<br>
{<br>
- if (q->Target == GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN ||<br>
+ if (q->Target == GL_PRIMITIVES_GENERATED ||<br>
+ q->Target == GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN ||<br>
q->Target == GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB)<br>
return q->Stream;<br>
<br>
if (st->has_single_pipe_stat) {<br>
switch (q->Target) {<br>
case GL_VERTICES_SUBMITTED_ARB:<br>
return PIPE_STAT_QUERY_IA_VERTICES;<br>
case GL_PRIMITIVES_SUBMITTED_ARB:<br>
return PIPE_STAT_QUERY_IA_PRIMITIVES;<br>
case GL_VERTEX_SHADER_INVOCATIONS_ARB:<br>
-- <br>
2.17.1<br>
<br>
</blockquote></div>