From 98572f0446e62eb889f28efe39fc1501e96093c1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 18 Aug 2013 11:15:08 +0100 Subject: overlay: Count flips per plane Stop the misleading double-accounting of flips when we have multiple displays active. Signed-off-by: Chris Wilson --- overlay/gpu-perf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'overlay/gpu-perf.c') 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; } -- cgit v1.2.3