overlay: Draw the cpu busy line on top of the waits
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 24 Aug 2013 11:59:31 +0000 (12:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 25 Aug 2013 12:34:31 +0000 (13:34 +0100)
By drawing it behind the waits, it is obscured by the translucent waits.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
overlay/overlay.c

index 1f1eee7..1cf0eab 100644 (file)
@@ -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;