i965: Fix a mistake in the comments for software counters.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Feb 2013 03:06:32 +0000 (19:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Apr 2013 17:34:49 +0000 (10:34 -0700)
The code doesn't set brw->query.obj to NULL, it sets query->bo to NULL.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_queryobj.c

index 194725cfad51bc098962163edaa02aae0836683b..81e975a186039a02be316708a98a29608dec8cac 100644 (file)
@@ -421,7 +421,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q)
       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
+      /* And set query->bo to NULL so that this query won't try to wait
        * for any rendering to complete.
        */
       query->bo = NULL;
@@ -435,7 +435,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q)
       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
+      /* And set query->bo to NULL so that this query won't try to wait
        * for any rendering to complete.
        */
       query->bo = NULL;