i965/gen9: Use raw PS invocation count for queries
authorBen Widawsky <benjamin.widawsky@intel.com>
Mon, 8 Jun 2015 21:52:07 +0000 (14:52 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Tue, 9 Jun 2015 18:17:37 +0000 (11:17 -0700)
commit30ba4faf5dcb9f55352eed1b37a3e820e8efe2ad
tree6d4a8be6a31a6199879627f2322b6d10e88dfdda
parentc10dc485f395d3b8d616bf2857bcdef9712dc47b
i965/gen9: Use raw PS invocation count for queries

Previously the number needed to be divided by 4 to get the proper results. Now
the hardware does the right thing. Through experimentation it seems Braswell
(CHV) does also need the division by 4.

Fixes piglit test:
arb_pipeline_statistics_query-frag

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/gen6_queryobj.c