i965: Use query->last_index instead of the global brw->query.index.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 26 Feb 2013 06:30:21 +0000 (22:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Mar 2013 06:09:04 +0000 (22:09 -0800)
commit90feda81de3c608d5a6041246fc010904a3afa81
tree5fb8fb8b906ce0e2808359eb2d03fb7b415c08f4
parentec5d502ec3215c7610bcff0be4418f698b2f36ab
i965: Use query->last_index instead of the global brw->query.index.

Since we already have an index in the brw_query_object, there's no need
to also keep a global variable that shadows it.

Plus, if we ever add support for more types of queries that still need
the per-batch before/after treatment we do for occlusion queries, we
won't be able to use a single global variable.  In contrast, per-query
object variables will work fine.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_queryobj.c