From 633a469a7a17242e0a06a18717d882481d0a317e Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Wed, 13 Jul 2022 12:33:31 -0700 Subject: [PATCH] driver_noop: Remove infinite recursion from create_fence_win32 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-By: Mike Blumenkrantz Acked-by: Marek Olšák Part-of: --- src/gallium/auxiliary/driver_noop/noop_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/driver_noop/noop_pipe.c b/src/gallium/auxiliary/driver_noop/noop_pipe.c index 08e825d..c737b75 100644 --- a/src/gallium/auxiliary/driver_noop/noop_pipe.c +++ b/src/gallium/auxiliary/driver_noop/noop_pipe.c @@ -622,7 +622,9 @@ static void noop_create_fence_win32(struct pipe_screen *screen, const void *name, enum pipe_fd_type type) { - screen->create_fence_win32(screen, fence, handle, name, type); + struct noop_pipe_screen *noop_screen = (struct noop_pipe_screen *)screen; + struct pipe_screen *oscreen = noop_screen->oscreen; + oscreen->create_fence_win32(oscreen, fence, handle, name, type); } static void noop_set_max_shader_compiler_threads(struct pipe_screen *screen, -- 2.7.4