From 20a25f5eafd37c2864e04c3065f6355e1306c6a6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 24 Aug 2013 12:59:31 +0100 Subject: [PATCH] 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 --- overlay/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(>->cpu_top) == 0) chart_add_sample(>->cpu, gt->cpu_top.busy); - chart_draw(>->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(>->busy[n], ctx->cr); } + chart_draw(>->cpu, ctx->cr); y1 = 12 - 2; y2 = y1 + (gt->gpu_top.num_rings+1) * 14 + 4;