summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-18 11:15:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-18 11:22:52 +0100
commit98572f0446e62eb889f28efe39fc1501e96093c1 (patch)
tree8083751ac6ddcee17a4068b53f4cb4c5090c1b9d /overlay/gpu-perf.c
parentb79a28355ded0118f6e53f745684d67c8201bf30 (diff)
overlay: Count flips per plane
Stop the misleading double-accounting of flips when we have multiple displays active. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gpu-perf.c')
-rw-r--r--overlay/gpu-perf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/overlay/gpu-perf.c b/overlay/gpu-perf.c
index 642d20c9..d30d2125 100644
--- a/overlay/gpu-perf.c
+++ b/overlay/gpu-perf.c
@@ -264,7 +264,9 @@ static int busy_end(struct gpu_perf *gp, const void *event)
static int flip_complete(struct gpu_perf *gp, const void *event)
{
- gp->flip_complete++;
+ const struct sample_event *sample = event;
+
+ gp->flip_complete[sample->raw[0]]++;
return 1;
}