freedreno/perfctrs/fdperf: periodically restore counters
authorRob Clark <robdclark@chromium.org>
Wed, 20 Nov 2019 19:56:57 +0000 (11:56 -0800)
committerRob Clark <robdclark@gmail.com>
Thu, 21 Nov 2019 20:01:03 +0000 (20:01 +0000)
commit1a8c49d76c389cfe8ceefdd2048d70c889116d11
tree0fda4340f369d942d25a46b64b55180ea361e638
parent5a13507164a26fc796f02c57a24468b834254b4d
freedreno/perfctrs/fdperf: periodically restore counters

When GPU is idle and suspends, the currently selected countables
will all reset to the first one.  So periodically restore the selected
countables.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/perfcntrs/fdperf.c