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>
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;
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;