i965/query: Add query->bo == NULL early return in CheckQuery hook.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Dec 2014 09:40:28 +0000 (01:40 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Dec 2014 23:39:53 +0000 (15:39 -0800)
commit12c16f4f27f7d57b036493826eacc1cab0584d45
tree39f075e3785e70293c861450e531d5644f932caa
parented8edd71759043ec433bcde599bb9cd28a477273
i965/query: Add query->bo == NULL early return in CheckQuery hook.

If query->bo == NULL, this is a redundant CheckQuery call, and we
should simply return.  We didn't do anything anyway - we skipped the
batch flushing block, and although we called get_results(), it has an
early return and does nothing.  Why bother?

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/gen6_queryobj.c