aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_queryobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_queryobj.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_queryobj.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c
index 72b83f45708..240fe32bdc5 100644
--- a/src/mesa/drivers/dri/i965/brw_queryobj.c
+++ b/src/mesa/drivers/dri/i965/brw_queryobj.c
@@ -171,6 +171,7 @@ brw_begin_query(struct gl_context *ctx, struct gl_query_object *q)
* it a software counter. So just reset the counter.
*/
brw->sol.primitives_generated = 0;
+ brw->sol.counting_primitives_generated = true;
break;
case GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:
@@ -178,6 +179,7 @@ brw_begin_query(struct gl_context *ctx, struct gl_query_object *q)
* it a software counter. So just reset the counter.
*/
brw->sol.primitives_written = 0;
+ brw->sol.counting_primitives_written = true;
break;
default:
@@ -249,6 +251,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q)
* the query object.
*/
query->Base.Result = brw->sol.primitives_generated;
+ brw->sol.counting_primitives_generated = false;
/* And set brw->query.obj to NULL so that this query won't try to wait
* for any rendering to complete.
@@ -262,6 +265,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q)
* the query object.
*/
query->Base.Result = brw->sol.primitives_written;
+ brw->sol.counting_primitives_written = false;
/* And set brw->query.obj to NULL so that this query won't try to wait
* for any rendering to complete.