From 54272e18a682c8b82d4a86b2c07b51c303d8cead Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 6 Aug 2016 16:41:42 +0200 Subject: gallium: add a pipe_context parameter to fence_finish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit required by glClientWaitSync (GL 4.5 Core spec) that can optionally flush the context Reviewed-by: Rob Clark Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/rbug/rbug_screen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/rbug/rbug_screen.c') diff --git a/src/gallium/drivers/rbug/rbug_screen.c b/src/gallium/drivers/rbug/rbug_screen.c index c2950e4a703..8d216691fdb 100644 --- a/src/gallium/drivers/rbug/rbug_screen.c +++ b/src/gallium/drivers/rbug/rbug_screen.c @@ -229,15 +229,15 @@ rbug_screen_fence_reference(struct pipe_screen *_screen, static boolean rbug_screen_fence_finish(struct pipe_screen *_screen, + struct pipe_context *_ctx, struct pipe_fence_handle *fence, uint64_t timeout) { struct rbug_screen *rb_screen = rbug_screen(_screen); struct pipe_screen *screen = rb_screen->screen; + struct pipe_context *ctx = _ctx ? rbug_context(_ctx)->pipe : NULL; - return screen->fence_finish(screen, - fence, - timeout); + return screen->fence_finish(screen, ctx, fence, timeout); } boolean -- cgit v1.2.3