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/state_trackers/nine/device9.c | 2 +- src/gallium/state_trackers/nine/swapchain9.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/nine') diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index f1c50d6d208..34f903a6947 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -205,7 +205,7 @@ NineDevice9_ctor( struct NineDevice9 *This, if (!This->cso_sw) { return E_OUTOFMEMORY; } /* Create first, it messes up our state. */ - This->hud = hud_create(This->context.cso); /* NULL result is fine */ + This->hud = hud_create(This->context.cso, NULL); /* NULL result is fine */ /* Available memory counter. Updated only for allocations with this device * instance. This is the Win 7 behavior. diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c index 096d582d97a..f24a7d05437 100644 --- a/src/gallium/state_trackers/nine/swapchain9.c +++ b/src/gallium/state_trackers/nine/swapchain9.c @@ -606,7 +606,7 @@ handle_draw_cursor_and_hud( struct NineSwapChain9 *This, struct pipe_resource *r if (device->hud && resource) { /* Implicit use of context pipe */ (void)NineDevice9_GetPipe(This->base.device); - hud_run(device->hud, resource); /* XXX: no offset */ + hud_run(device->hud, NULL, resource); /* XXX: no offset */ /* HUD doesn't clobber stipple */ nine_state_restore_non_cso(device); } -- cgit v1.2.3