diff options
author | Marek Olšák <[email protected]> | 2017-06-21 21:32:35 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-26 02:17:03 +0200 |
commit | 09f6915bf89759945fdb05d96473affe5f9ed9fe (patch) | |
tree | 7266766b0fbdd0853a453404d016e95c98547a66 /src/gallium/auxiliary/hud/hud_private.h | |
parent | 8f4bc8a3240de6255ead042704b80a18ebcf0973 (diff) |
gallium/hud: add glthread counters
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h index b8726da7342..2b1717d2c4a 100644 --- a/src/gallium/auxiliary/hud/hud_private.h +++ b/src/gallium/auxiliary/hud/hud_private.h @@ -33,6 +33,12 @@ #include "util/list.h" #include "hud/font.h" +enum hud_counter { + HUD_COUNTER_OFFLOADED, + HUD_COUNTER_DIRECT, + HUD_COUNTER_SYNCS, +}; + struct hud_context { struct pipe_context *pipe; struct cso_context *cso; @@ -145,6 +151,8 @@ int hud_get_num_cpus(void); void hud_fps_graph_install(struct hud_pane *pane); void hud_cpu_graph_install(struct hud_pane *pane, unsigned cpu_index); void hud_thread_busy_install(struct hud_pane *pane, const char *name, bool main); +void hud_thread_counter_install(struct hud_pane *pane, const char *name, + enum hud_counter counter); void hud_pipe_query_install(struct hud_batch_query_context **pbq, struct hud_pane *pane, struct pipe_context *pipe, const char *name, unsigned query_type, |