summaryrefslogtreecommitdiff
path: root/overlay/overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-18 18:27:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-18 18:27:47 +0100
commit7d950fa6f26e823a741f8c2db95ce4dd96c8d432 (patch)
tree82cdc73bea0bf35a6408404ece8be59f5c31f20b /overlay/overlay.c
parent3f5129471fdcc81ae4291bfa717e497d223e35a1 (diff)
overlay: Print min/max GPU frequencies.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/overlay.c')
-rw-r--r--overlay/overlay.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 92eca694..46658195 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -432,6 +432,11 @@ static void show_gpu_freq(struct overlay_context *ctx, struct overlay_gpu_freq *
cairo_show_text(ctx->cr, buf);
y += 14;
+ sprintf(buf, "min: %dMHz, max: %dMHz", gf->gpu_freq.min, gf->gpu_freq.max);
+ cairo_move_to(ctx->cr, 12, y);
+ cairo_show_text(ctx->cr, buf);
+ y += 14;
+
ctx->last_y += 112;
}