summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-02-27 19:06:32 -0800
committerKenneth Graunke <[email protected]>2013-04-22 10:34:49 -0700
commit95c83824e6c3740781d1e9f7ce6a5fbe839d0457 (patch)
tree440e4a446cce434f05c951b4a6054d83c9b9e7f1
parentc0538860bf656a1796b4a5c9c136c7d3517dfba6 (diff)
i965: Fix a mistake in the comments for software counters.
The code doesn't set brw->query.obj to NULL, it sets query->bo to NULL. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_queryobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c
index 194725cfad5..81e975a1860 100644
--- a/src/mesa/drivers/dri/i965/brw_queryobj.c
+++ b/src/mesa/drivers/dri/i965/brw_queryobj.c
@@ -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;