From 11e25eb7f4538ab7f1ca5d06e8e1ae09be10ad45 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 19 Nov 2017 21:04:07 +0100 Subject: gallium/hud: update the HUD interface for multiple contexts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the boring subset of the following commit. All new parameters are optional. Reviewed-by: Nicolai Hähnle --- src/gallium/auxiliary/hud/hud_context.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/auxiliary/hud/hud_context.c') 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); -- cgit v1.2.3