OSDN Git Service

i965: Replace the global brw->query.bo variable with query->bo.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 26 Feb 2013 07:33:24 +0000 (23:33 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Mar 2013 06:09:04 +0000 (22:09 -0800)
commit961c9b8cac6c438b74d8328a5e8c61215a16ea40
treee194542976ba6e75be7f7cc9be29594a0ad507bb
parent614944b8975ce9827b26b92f42ad8b48493eb7f0
i965: Replace the global brw->query.bo variable with query->bo.

Again, eliminating a global variable in favor of a per-query object
variable will help in a future where we have more queries in hardware.

Personally, I find this clearer: there's just the query object's BO,
rather than two variables that usually shadow each other.

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