diff options
author | Marek Olšák <[email protected]> | 2017-11-19 21:29:46 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:16:56 +0100 |
commit | bd57f45168188caabce3aebed287a9d32bc00537 (patch) | |
tree | 935da2ae073a1890e39dcc554e7e096a33c1562b /src/gallium/auxiliary/hud/hud_private.h | |
parent | 11e25eb7f4538ab7f1ca5d06e8e1ae09be10ad45 (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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_private.h | 2 |
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; |