summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/hud/hud_private.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-11-19 21:29:46 +0100
committerMarek Olšák <marek.olsak@amd.com>2017-11-25 17:16:56 +0100
commitbd57f45168188caabce3aebed287a9d32bc00537 (patch)
tree935da2ae073a1890e39dcc554e7e096a33c1562b /src/gallium/auxiliary/hud/hud_private.h
parent11e25eb7f4538ab7f1ca5d06e8e1ae09be10ad45 (diff)
gallium/hud: add HUD sharing within a context share group
This is needed for profiling multi-context applications like Chrome. One context can record queries and another context can draw the HUD. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r--src/gallium/auxiliary/hud/hud_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h
index c55d64f5eb6..7f0294badd3 100644
--- a/src/gallium/auxiliary/hud/hud_private.h
+++ b/src/gallium/auxiliary/hud/hud_private.h
@@ -40,6 +40,8 @@ enum hud_counter {
};
struct hud_context {
+ int refcount;
+
/* Context where queries are executed. */
struct pipe_context *record_pipe;