diff options
author | Ben Widawsky <[email protected]> | 2015-06-08 14:52:07 -0700 |
---|---|---|
committer | Ben Widawsky <[email protected]> | 2015-06-09 11:17:37 -0700 |
commit | 30ba4faf5dcb9f55352eed1b37a3e820e8efe2ad (patch) | |
tree | 6d4a8be6a31a6199879627f2322b6d10e88dfdda | |
parent | c10dc485f395d3b8d616bf2857bcdef9712dc47b (diff) |
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 <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_queryobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_queryobj.c b/src/mesa/drivers/dri/i965/gen6_queryobj.c index 6431ed56d81..ba5c944fb3d 100644 --- a/src/mesa/drivers/dri/i965/gen6_queryobj.c +++ b/src/mesa/drivers/dri/i965/gen6_queryobj.c @@ -246,7 +246,7 @@ gen6_queryobj_get_results(struct gl_context *ctx, * and correctly emitted the number of pixel shader invocations, but, * whomever forgot to undo the multiply by 4. */ - if (brw->gen >= 8 || brw->is_haswell) + if (brw->gen == 8 || brw->is_haswell) query->Base.Result /= 4; break; |