i965/query: Set Ready flag in gen6_queryobj_get_results().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Dec 2014 09:29:48 +0000 (01:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Dec 2014 23:39:50 +0000 (15:39 -0800)
commited8edd71759043ec433bcde599bb9cd28a477273
treea7d8c59c044d7561ba67f6731803942bfe1c2a16
parent1f0e1060503e9e700c22a07fa050c47ef5257a40
i965/query: Set Ready flag in gen6_queryobj_get_results().

q->Ready means that the results are in, and core Mesa is free to return
them to the application.  gen6_queryobj_get_results() is a natural place
to set that flag; doing so means callers don't have to.

The older non-hardware-context aware code couldn't do this, because we
had to call brw_queryobj_get_results() to gather intermediate results
when we ran out of space for snapshots in the query buffer.  We only
gather complete results in the Gen6+ code, however.

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