From 47ac871e8428a0ee9827fec131265dd65a58df05 Mon Sep 17 00:00:00 2001 From: Silvio Vilerino Date: Wed, 1 Apr 2026 16:05:31 -0400 Subject: [PATCH] pipe: Add fence_get_win32_event since fence_get_fd return int type is smaller than HANDLE/void* Reviewed-by: Jesse Natalie Part-of: --- src/gallium/include/pipe/p_screen.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index 228c721fb0b..e73d7a0b39b 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -436,6 +436,12 @@ struct pipe_screen { struct pipe_fence_handle *fence, uint64_t *fence_value); + /** + * Retrieves the Win32 event handle from the fence. + */ + void* (*fence_get_win32_event)(struct pipe_screen *screen, + struct pipe_fence_handle *fence); + /** * Create a fence from an Win32 handle. *