From 67d2e6258e90f9049a05555a2bb09184d620d42c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 12 Jul 2019 11:40:12 +0200 Subject: [PATCH] zink: stub resource_from_handle Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_resource.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 658774fcdf0..8ce90bb50c4 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -322,12 +322,22 @@ zink_resource_get_handle(struct pipe_screen *pscreen, return true; } +static struct pipe_resource * +zink_resource_from_handle(struct pipe_screen *pscreen, + const struct pipe_resource *templat, + struct winsys_handle *whandle, + unsigned usage) +{ + return NULL; +} + void zink_screen_resource_init(struct pipe_screen *pscreen) { pscreen->resource_create = zink_resource_create; pscreen->resource_destroy = zink_resource_destroy; pscreen->resource_get_handle = zink_resource_get_handle; + pscreen->resource_from_handle = zink_resource_from_handle; } static bool -- 2.30.2