diff options
author | Marek Olšák <[email protected]> | 2019-01-18 11:25:06 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-01-23 14:32:57 -0500 |
commit | 42aea4f1a79729885e1dd67efbab23662964187a (patch) | |
tree | 48e6afbcd8606b5622cffdae8e74fbee2dd8b01b /src/mesa/state_tracker | |
parent | c89e8470e58066637c4bfd5c76a2247eb3608b8b (diff) |
st/mesa: fix PRIMITIVES_GENERATED query after the "pipeline stat single" changes
When this functionality was added, the PRIMITIVES_GENERATED query was
accidentally omitted. This causes issues for drivers that support
transform feedback."
Fixes: d644698b443 ("gallium: Add the ability to query a single
pipeline statistics counter")
Reviewed-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_queryobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ -91,7 +91,8 @@ st_DeleteQuery(struct gl_context *ctx, struct gl_query_object *q) 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; |