diff options
author | Dave Airlie <[email protected]> | 2018-11-08 17:46:22 +1000 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:11 -0800 |
commit | 5ae2e5aa94aa04d4285e8e914937dfad55cd3c86 (patch) | |
tree | cbafcfb0d135700c227b76f01113e7488a832d2e /src | |
parent | 8806b29e1607a718429976b2f62172ff54c49e1c (diff) |
iris: add fs invocations query workaround for broadwell
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_query.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_query.c b/src/gallium/drivers/iris/iris_query.c index 9739369dd74..fcc443e422a 100644 --- a/src/gallium/drivers/iris/iris_query.c +++ b/src/gallium/drivers/iris/iris_query.c @@ -812,6 +812,12 @@ iris_get_query_result(struct pipe_context *ctx, break; case 7: result->pipeline_statistics.ps_invocations = q->result; + /* Implement the "WaDividePSInvocationCountBy4:HSW,BDW" workaround: + * "Invocation counter is 4 times actual. WA: SW to divide HW reported + * PS Invocations value by 4." + */ + if (screen->devinfo.gen == 8) + result->pipeline_statistics.ps_invocations /= 4; break; case 8: result->pipeline_statistics.hs_invocations = q->result; |