diff options
author | Marek Olšák <[email protected]> | 2017-11-19 21:04:07 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:16:56 +0100 |
commit | 11e25eb7f4538ab7f1ca5d06e8e1ae09be10ad45 (patch) | |
tree | f5068d29dcca17e1bdc53ffffe5589c06f8f593e /src/gallium/auxiliary | |
parent | 9c5b4eb6b4ea46af274927a0af5907e996bcdcfe (diff) |
gallium/hud: update the HUD interface for multiple contexts
This is the boring subset of the following commit.
All new parameters are optional.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.c | 7 | ||||
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.h | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 7502416c5b8..783dafd75f6 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -681,7 +681,8 @@ hud_stop_queries(struct hud_context *hud, struct pipe_context *pipe) } void -hud_run(struct hud_context *hud, struct pipe_resource *tex) +hud_run(struct hud_context *hud, struct cso_context *cso, + struct pipe_resource *tex) { hud_stop_queries(hud, hud->record_pipe); hud_draw_results(hud, tex); @@ -1684,7 +1685,7 @@ hud_set_record_context(struct hud_context *hud, struct pipe_context *pipe) } struct hud_context * -hud_create(struct cso_context *cso) +hud_create(struct cso_context *cso, struct hud_context *share) { struct pipe_screen *screen = cso_get_pipe_context(cso)->screen; struct hud_context *hud; @@ -1790,7 +1791,7 @@ hud_create(struct cso_context *cso) } void -hud_destroy(struct hud_context *hud) +hud_destroy(struct hud_context *hud, struct cso_context *cso) { hud_unset_record_context(hud); hud_unset_draw_context(hud); diff --git a/src/gallium/auxiliary/hud/hud_context.h b/src/gallium/auxiliary/hud/hud_context.h index 97aa709f061..128d4ef9ab8 100644 --- a/src/gallium/auxiliary/hud/hud_context.h +++ b/src/gallium/auxiliary/hud/hud_context.h @@ -35,13 +35,14 @@ struct pipe_resource; struct util_queue_monitoring; struct hud_context * -hud_create(struct cso_context *cso); +hud_create(struct cso_context *cso, struct hud_context *share); void -hud_destroy(struct hud_context *hud); +hud_destroy(struct hud_context *hud, struct cso_context *cso); void -hud_run(struct hud_context *hud, struct pipe_resource *tex); +hud_run(struct hud_context *hud, struct cso_context *cso, + struct pipe_resource *tex); void hud_add_queue_for_monitoring(struct hud_context *hud, |