mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 06:16:13 +00:00
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>
This commit is contained in:
parent
a932c73ab7
commit
20a25f5eaf
@ -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)
|
if (update && cpu_top_update(>->cpu_top) == 0)
|
||||||
chart_add_sample(>->cpu, gt->cpu_top.busy);
|
chart_add_sample(>->cpu, gt->cpu_top.busy);
|
||||||
chart_draw(>->cpu, ctx->cr);
|
|
||||||
|
|
||||||
for (n = 0; n < gt->gpu_top.num_rings; n++) {
|
for (n = 0; n < gt->gpu_top.num_rings; n++) {
|
||||||
if (update)
|
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);
|
gt->gpu_top.ring[n].u.u.busy);
|
||||||
chart_draw(>->busy[n], ctx->cr);
|
chart_draw(>->busy[n], ctx->cr);
|
||||||
}
|
}
|
||||||
|
chart_draw(>->cpu, ctx->cr);
|
||||||
|
|
||||||
y1 = 12 - 2;
|
y1 = 12 - 2;
|
||||||
y2 = y1 + (gt->gpu_top.num_rings+1) * 14 + 4;
|
y2 = y1 + (gt->gpu_top.num_rings+1) * 14 + 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user