summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-24 12:59:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-25 13:34:31 +0100
commit20a25f5eafd37c2864e04c3065f6355e1306c6a6 (patch)
treea48c9236e59306a750275d73f21ab6c067b7016b /overlay
parenta932c73ab7b0e768ceb723ec280847e55c5cf495 (diff)
overlay: Draw the cpu busy line on top of the waits
By drawing it behind the waits, it is obscured by the translucent waits. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay')
-rw-r--r--overlay/overlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 1f1eee79..1cf0eab3 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -187,7 +187,6 @@ static void show_gpu_top(struct overlay_context *ctx, struct overlay_gpu_top *gt
if (update && cpu_top_update(&gt->cpu_top) == 0)
chart_add_sample(&gt->cpu, gt->cpu_top.busy);
- chart_draw(&gt->cpu, ctx->cr);
for (n = 0; n < gt->gpu_top.num_rings; n++) {
if (update)
@@ -201,6 +200,7 @@ static void show_gpu_top(struct overlay_context *ctx, struct overlay_gpu_top *gt
gt->gpu_top.ring[n].u.u.busy);
chart_draw(&gt->busy[n], ctx->cr);
}
+ chart_draw(&gt->cpu, ctx->cr);
y1 = 12 - 2;
y2 = y1 + (gt->gpu_top.num_rings+1) * 14 + 4;